mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
UI adjustmnets settings dialog, overview button
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
#include "coresettingsdialog.h"
|
#include "coresettingsdialog.h"
|
||||||
#include "ui_coresettingsdialog.h"
|
#include "ui_coresettingsdialog.h"
|
||||||
#include "blackgui/guiapplication.h"
|
#include "blackgui/guiapplication.h"
|
||||||
|
#include <QPushButton>
|
||||||
|
|
||||||
namespace BlackGui
|
namespace BlackGui
|
||||||
{
|
{
|
||||||
@@ -22,9 +23,17 @@ namespace BlackGui
|
|||||||
Q_ASSERT(sGui);
|
Q_ASSERT(sGui);
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
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()
|
CCoreSettingsDialog::~CCoreSettingsDialog()
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
void CCoreSettingsDialog::showOverview()
|
||||||
|
{
|
||||||
|
ui->comp_SettingsComponent->setSettingsOverviewTab();
|
||||||
|
}
|
||||||
} // ns
|
} // ns
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -37,6 +37,9 @@ namespace BlackGui
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
QScopedPointer<Ui::CCoreSettingsDialog> ui;
|
QScopedPointer<Ui::CCoreSettingsDialog> ui;
|
||||||
|
|
||||||
|
//! Show the overview tab
|
||||||
|
void showOverview();
|
||||||
};
|
};
|
||||||
} // ns
|
} // ns
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -20,18 +20,6 @@
|
|||||||
<string>swift settings</string>
|
<string>swift settings</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="vl_SettingsDialog">
|
<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>
|
<item>
|
||||||
<widget class="BlackGui::Components::CSettingsComponent" name="comp_SettingsComponent"/>
|
<widget class="BlackGui::Components::CSettingsComponent" name="comp_SettingsComponent"/>
|
||||||
</item>
|
</item>
|
||||||
@@ -41,7 +29,7 @@
|
|||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="standardButtons">
|
<property name="standardButtons">
|
||||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset</set>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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 {
|
QFileDialog #sidebar {
|
||||||
background: black;
|
background: black;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user