mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
UI adjustmnets settings dialog, overview button
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -37,6 +37,9 @@ namespace BlackGui
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CCoreSettingsDialog> ui;
|
||||
|
||||
//! Show the overview tab
|
||||
void showOverview();
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user