Skip to content

Commit

Permalink
add start in fullscreen flag and fix list scroll size
Browse files Browse the repository at this point in the history
  • Loading branch information
noisecode3 committed Aug 13, 2024
1 parent 0c5b1ca commit 2584151
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/TombRaiderLinuxLauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ void TombRaiderLinuxLauncher::checkCommonFiles(bool status)

void TombRaiderLinuxLauncher::generateList()
{
ui->listWidgetModds->setIconSize(QSize(320, 240));
QFont defaultFont = QApplication::font();
int newSize = 22;
defaultFont.setPointSize(newSize);
ui->listWidgetModds->setFont(defaultFont);
const QString& directoryPath = settings.value("levelPath").toString();
const QString& pictures = ":/pictures/pictures/";

Expand Down
23 changes: 23 additions & 0 deletions src/TombRaiderLinuxLauncher.ui
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,32 @@
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QListWidget" name="listWidgetModds">
<property name="font">
<font>
<pointsize>22</pointsize>
</font>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAsNeeded</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="iconSize">
<size>
<width>320</width>
<height>240</height>
</size>
</property>
<property name="verticalScrollMode">
<enum>QAbstractItemView::ScrollPerPixel</enum>
</property>
<property name="resizeMode">
<enum>QListView::Adjust</enum>
</property>
</widget>
</item>
<item>
Expand Down
9 changes: 8 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ int main(int argc, char *argv[])

// Construct the QSettings object
TombRaiderLinuxLauncher w;
w.show();

QStringList arguments = a.arguments();
if (arguments.contains("--fullscreen")) {
w.showFullScreen();
} else {
w.show();
}

return a.exec();
}

0 comments on commit 2584151

Please sign in to comment.