mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 08:35:52 -04:00
Merged clean newlauncher branch with config
Conflicts: apps/launcher/CMakeLists.txt apps/launcher/datafilesdialog.cpp apps/launcher/datafilesdialog.h apps/launcher/lineedit.hpp apps/launcher/maindialog.cpp apps/launcher/resources.qrc apps/launcher/resources/images/openmw-icon.png
This commit is contained in:
parent
e4129ce26e
commit
4f18452ef6
@ -21,10 +21,6 @@ MainDialog::MainDialog()
|
|||||||
|
|
||||||
mIconWidget->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); // Just to be sure
|
mIconWidget->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); // Just to be sure
|
||||||
|
|
||||||
//mIconWidget->setItemDelegate(new ListViewDelegate());
|
|
||||||
mIconWidget->setAttribute(Qt::WA_MacShowFocusRect); // Show a focus frame around the icons on Mac
|
|
||||||
//mIconWidget->setLayoutMode(QListView::SinglePass);
|
|
||||||
mIconWidget->setUniformItemSizes(true);
|
|
||||||
|
|
||||||
mIconWidget->setIconSize(QSize(48, 48));
|
mIconWidget->setIconSize(QSize(48, 48));
|
||||||
mIconWidget->setMovement(QListView::Static);
|
mIconWidget->setMovement(QListView::Static);
|
||||||
@ -33,12 +29,10 @@ MainDialog::MainDialog()
|
|||||||
mIconWidget->setFixedHeight(80);
|
mIconWidget->setFixedHeight(80);
|
||||||
mIconWidget->setSpacing(4);
|
mIconWidget->setSpacing(4);
|
||||||
mIconWidget->setCurrentRow(0);
|
mIconWidget->setCurrentRow(0);
|
||||||
|
|
||||||
mIconWidget->setFlow(QListView::LeftToRight);
|
mIconWidget->setFlow(QListView::LeftToRight);
|
||||||
|
|
||||||
QGroupBox *groupBox = new QGroupBox(this);
|
QGroupBox *groupBox = new QGroupBox(this);
|
||||||
QVBoxLayout *groupLayout = new QVBoxLayout(groupBox);
|
QVBoxLayout *groupLayout = new QVBoxLayout(groupBox);
|
||||||
|
|
||||||
// TODO: TESTING
|
// TODO: TESTING
|
||||||
|
|
||||||
/*mProfileModel = new QStringListModel();
|
/*mProfileModel = new QStringListModel();
|
||||||
@ -99,7 +93,6 @@ void MainDialog::createIcons()
|
|||||||
configButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
|
configButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
|
||||||
|
|
||||||
//configButton->setSizeHint(itemSize);
|
//configButton->setSizeHint(itemSize);
|
||||||
|
|
||||||
QListWidgetItem *updateButton = new QListWidgetItem(mIconWidget);
|
QListWidgetItem *updateButton = new QListWidgetItem(mIconWidget);
|
||||||
updateButton->setIcon(QIcon::fromTheme("video-display"));
|
updateButton->setIcon(QIcon::fromTheme("video-display"));
|
||||||
updateButton->setText(tr("Graphics"));
|
updateButton->setText(tr("Graphics"));
|
||||||
@ -110,6 +103,8 @@ void MainDialog::createIcons()
|
|||||||
|
|
||||||
QListWidgetItem *queryButton = new QListWidgetItem(mIconWidget);
|
QListWidgetItem *queryButton = new QListWidgetItem(mIconWidget);
|
||||||
queryButton->setIcon(QIcon(":/images/openmw-plugin-icon.png"));
|
queryButton->setIcon(QIcon(":/images/openmw-plugin-icon.png"));
|
||||||
|
QListWidgetItem *queryButton = new QListWidgetItem(mIconWidget);
|
||||||
|
queryButton->setIcon(QIcon(":resources/openmw-plugin-icon.png"));
|
||||||
queryButton->setText(tr("Data Files"));
|
queryButton->setText(tr("Data Files"));
|
||||||
queryButton->setTextAlignment(Qt::AlignHCenter | Qt::AlignBottom);
|
queryButton->setTextAlignment(Qt::AlignHCenter | Qt::AlignBottom);
|
||||||
queryButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
|
queryButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
|
||||||
@ -120,6 +115,9 @@ void MainDialog::createIcons()
|
|||||||
SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
|
SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
|
||||||
this, SLOT(changePage(QListWidgetItem*,QListWidgetItem*)));
|
this, SLOT(changePage(QListWidgetItem*,QListWidgetItem*)));
|
||||||
|
|
||||||
|
connect(mIconWidget,
|
||||||
|
SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
|
||||||
|
this, SLOT(changePage(QListWidgetItem*,QListWidgetItem*)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainDialog::changePage(QListWidgetItem *current, QListWidgetItem *previous)
|
void MainDialog::changePage(QListWidgetItem *current, QListWidgetItem *previous)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user