UI adjustmnets settings dialog, overview button

This commit is contained in:
Klaus Basan
2018-08-08 20:36:30 +02:00
parent 9fccc6c70a
commit 07a44dfc08
4 changed files with 21 additions and 13 deletions

View File

@@ -10,6 +10,7 @@
#include "coresettingsdialog.h"
#include "ui_coresettingsdialog.h"
#include "blackgui/guiapplication.h"
#include <QPushButton>
namespace BlackGui
{
@@ -22,9 +23,17 @@ namespace BlackGui
Q_ASSERT(sGui);
ui->setupUi(this);
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
QPushButton *overview = ui->bb_CoreSettingsDialog->button(QDialogButtonBox::Reset);
overview->setText("Overview");
connect(overview, &QPushButton::released, this, &CCoreSettingsDialog::showOverview);
}
CCoreSettingsDialog::~CCoreSettingsDialog()
{ }
void CCoreSettingsDialog::showOverview()
{
ui->comp_SettingsComponent->setSettingsOverviewTab();
}
} // ns
} // ns

View File

@@ -37,6 +37,9 @@ namespace BlackGui
private:
QScopedPointer<Ui::CCoreSettingsDialog> ui;
//! Show the overview tab
void showOverview();
};
} // ns
} // ns

View File

@@ -20,18 +20,6 @@
<string>swift settings</string>
</property>
<layout class="QVBoxLayout" name="vl_SettingsDialog">
<property name="leftMargin">
<number>4</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>4</number>
</property>
<property name="bottomMargin">
<number>4</number>
</property>
<item>
<widget class="BlackGui::Components::CSettingsComponent" name="comp_SettingsComponent"/>
</item>
@@ -41,7 +29,7 @@
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset</set>
</property>
</widget>
</item>

View File

@@ -99,6 +99,14 @@ BlackGui--Components--CSetupLoadingDialog #fr_Details {
}
*/
/* core settings */
/* needed for CCoreSettingsDialog */
/* BlackGui::Components::CSettingsComponent */
BlackGui--Components--CCoreSettingsDialog {
background: black; /* background is background color here */
background-image: url(:/textures/icons/textures/texture-inner.jpg);
}
QFileDialog #sidebar {
background: black;
}