From 9238ef13e65f1c1227b0cd7503f55656be117ff2 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Thu, 20 Feb 2014 10:37:31 -0800 Subject: [PATCH 1/2] Changed Import button size --- interface/resources/styles/import_dialog.qss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/resources/styles/import_dialog.qss b/interface/resources/styles/import_dialog.qss index d7d661399d..bb83ce70ed 100644 --- a/interface/resources/styles/import_dialog.qss +++ b/interface/resources/styles/import_dialog.qss @@ -36,7 +36,7 @@ QPushButton { border-radius: 9px; font-size: 18px; padding: 17px 0px 15px; - width: 120px; + width: 150px; margin-top: 20px; margin-bottom: 18px; } From 904ce7bf1c4507eb473e26cff71d77e49b2627b5 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Thu, 20 Feb 2014 10:38:08 -0800 Subject: [PATCH 2/2] Repositionned nivigation buttons in ImportDialog --- interface/src/ImportDialog.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/interface/src/ImportDialog.cpp b/interface/src/ImportDialog.cpp index 2e0173fb9f..59c8c93f26 100644 --- a/interface/src/ImportDialog.cpp +++ b/interface/src/ImportDialog.cpp @@ -15,7 +15,7 @@ #include const QString WINDOW_NAME = QObject::tr("Import Voxels"); -const QString IMPORT_BUTTON_NAME = QObject::tr("Import"); +const QString IMPORT_BUTTON_NAME = QObject::tr("Import Voxels"); const QString LOADING_BUTTON_NAME = QObject::tr("Loading ..."); const QString PLACE_BUTTON_NAME = QObject::tr("Place voxels"); const QString IMPORT_INFO = QObject::tr("Import %1 as voxels"); @@ -186,16 +186,26 @@ void ImportDialog::setLayout() { _progressBar.setFixedHeight(progressBarHeight); _progressBar.setTextVisible(false); + QGridLayout* subLayout = new QGridLayout(); + subLayout->addWidget(findChild("lookInLabel"), 0, 0, 1, 5); + QSize BUTTON_SIZE = QSize(43, 33); QPushButton* button = (QPushButton*) findChild("backButton"); button->setIcon(QIcon()); button->setFixedSize(BUTTON_SIZE); + subLayout->addWidget(button, 1, 0, 1, 1); + button = (QPushButton*) findChild("forwardButton"); button->setIcon(QIcon()); button->setFixedSize(BUTTON_SIZE); + subLayout->addWidget(button, 1, 1, 1, 1); + button = (QPushButton*) findChild("toParentButton"); button->setIcon(QIcon()); button->setFixedSize(BUTTON_SIZE); + subLayout->addWidget(button, 1, 2, 1, 1); + + gridLayout->addLayout(subLayout, 0, 0, 1, 1); // hide unused embedded widgets in QFileDialog QWidget* widget = findChild("lookInCombo");