mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 22:29:13 +08:00
New slot style for navigator dialog
This commit is contained in:
@@ -66,6 +66,8 @@ namespace BlackGui
|
|||||||
this->insertOwnActions();
|
this->insertOwnActions();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this->ps_onStyleSheetsChanged();
|
||||||
|
|
||||||
// remove old layout
|
// remove old layout
|
||||||
CGuiUtility::deleteLayout(this->ui->fr_NavigatorDialogInner->layout(), false);
|
CGuiUtility::deleteLayout(this->ui->fr_NavigatorDialogInner->layout(), false);
|
||||||
|
|
||||||
@@ -147,7 +149,6 @@ namespace BlackGui
|
|||||||
void CNavigatorDialog::windowFlagsChanged()
|
void CNavigatorDialog::windowFlagsChanged()
|
||||||
{
|
{
|
||||||
if (this->m_firstBuild) { return; }
|
if (this->m_firstBuild) { return; }
|
||||||
this->ps_onStyleSheetsChanged();
|
|
||||||
this->buildNavigator(this->m_currentColumns);
|
this->buildNavigator(this->m_currentColumns);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -201,13 +202,13 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CNavigatorDialog::addToContextMenu(QMenu *contextMenu) const
|
void CNavigatorDialog::addToContextMenu(QMenu *contextMenu) const
|
||||||
{
|
{
|
||||||
QAction *a = contextMenu->addAction(CIcons::resize16(), "1 row", this, SLOT(ps_changeLayout()));
|
QAction *a = contextMenu->addAction(CIcons::resize16(), "1 row", this, &CNavigatorDialog::ps_changeLayout);
|
||||||
a->setData("1r");
|
a->setData("1r");
|
||||||
a = contextMenu->addAction(CIcons::resize16(), "2 rows", this, SLOT(ps_changeLayout()));
|
a = contextMenu->addAction(CIcons::resize16(), "2 rows", this, &CNavigatorDialog::ps_changeLayout);
|
||||||
a->setData("2r");
|
a->setData("2r");
|
||||||
a = contextMenu->addAction(CIcons::resize16(), "1 column", this, SLOT(ps_changeLayout()));
|
a = contextMenu->addAction(CIcons::resize16(), "1 column", this, &CNavigatorDialog::ps_changeLayout);
|
||||||
a->setData("1c");
|
a->setData("1c");
|
||||||
a = contextMenu->addAction(CIcons::resize16(), "2 columns", this, SLOT(ps_changeLayout()));
|
a = contextMenu->addAction(CIcons::resize16(), "2 columns", this, &CNavigatorDialog::ps_changeLayout);
|
||||||
a->setData("2c");
|
a->setData("2c");
|
||||||
|
|
||||||
contextMenu->addSeparator();
|
contextMenu->addSeparator();
|
||||||
|
|||||||
Reference in New Issue
Block a user