Some minor fixes

pull/37/head
Pieter van der Kloet 12 years ago
parent 5773676986
commit 6433b1e022

@ -90,6 +90,7 @@ DataFilesPage::DataFilesPage(Files::ConfigurationManager &cfg, QWidget *parent)
// Set the row height to the size of the checkboxes // Set the row height to the size of the checkboxes
mMastersTable->verticalHeader()->setDefaultSectionSize(height); mMastersTable->verticalHeader()->setDefaultSectionSize(height);
mMastersTable->verticalHeader()->setResizeMode(QHeaderView::Fixed);
mMastersTable->verticalHeader()->hide(); mMastersTable->verticalHeader()->hide();
mMastersTable->setColumnHidden(1, true); mMastersTable->setColumnHidden(1, true);
mMastersTable->setColumnHidden(2, true); mMastersTable->setColumnHidden(2, true);
@ -110,7 +111,7 @@ DataFilesPage::DataFilesPage(Files::ConfigurationManager &cfg, QWidget *parent)
mPluginsTable->setAlternatingRowColors(true); mPluginsTable->setAlternatingRowColors(true);
mPluginsTable->setVerticalScrollMode(QAbstractItemView::ScrollPerItem); mPluginsTable->setVerticalScrollMode(QAbstractItemView::ScrollPerItem);
mPluginsTable->horizontalHeader()->setStretchLastSection(true); mPluginsTable->horizontalHeader()->setStretchLastSection(true);
mPluginsTable->horizontalHeader()->hide();
mPluginsTable->verticalHeader()->setDefaultSectionSize(height); mPluginsTable->verticalHeader()->setDefaultSectionSize(height);
mPluginsTable->verticalHeader()->setResizeMode(QHeaderView::Fixed); mPluginsTable->verticalHeader()->setResizeMode(QHeaderView::Fixed);
mPluginsTable->setColumnHidden(1, true); mPluginsTable->setColumnHidden(1, true);

@ -244,10 +244,10 @@ void MainDialog::play()
const std::string settingspath = (mCfgMgr.getUserPath() / "settings.cfg").string(); const std::string settingspath = (mCfgMgr.getUserPath() / "settings.cfg").string();
mSettings.saveUser(settingspath); mSettings.saveUser(settingspath);
#ifdef Q_WS_WIN #ifdef Q_OS_WIN
QString game = "./openmw.exe"; QString game = "./openmw.exe";
QFile file(game); QFile file(game);
#elif defined(Q_WS_MAC) #elif defined(Q_OS_MAC)
QDir dir(QCoreApplication::applicationDirPath()); QDir dir(QCoreApplication::applicationDirPath());
QString game = dir.absoluteFilePath("openmw"); QString game = dir.absoluteFilePath("openmw");
QFile file(game); QFile file(game);

Loading…
Cancel
Save