mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
[AdBlockDialog] Options button is now QPushButton
Qt renders better down icon indicating the button has menu
This commit is contained in:
parent
31afc8aee6
commit
8eea60fe6a
@ -279,7 +279,7 @@ RSSManager QTabBar::tab
|
||||
/*AboutDialog*/
|
||||
AboutDialog #label
|
||||
{
|
||||
background:white;
|
||||
background: white;
|
||||
}
|
||||
|
||||
AboutDialog #textBrowser
|
||||
|
@ -42,7 +42,7 @@ AdBlockDialog::AdBlockDialog(QWidget* parent)
|
||||
#endif
|
||||
adblockCheckBox->setChecked(m_manager->isEnabled());
|
||||
|
||||
QMenu* menu = new QMenu(buttonMenu);
|
||||
QMenu* menu = new QMenu(buttonOptions);
|
||||
m_actionAddRule = menu->addAction(tr("Add Rule"), this, SLOT(addRule()));
|
||||
m_actionRemoveRule = menu->addAction(tr("Remove Rule"), this, SLOT(removeRule()));
|
||||
menu->addSeparator();
|
||||
@ -52,7 +52,7 @@ AdBlockDialog::AdBlockDialog(QWidget* parent)
|
||||
menu->addSeparator();
|
||||
menu->addAction(tr("Learn about writing rules..."), this, SLOT(learnAboutRules()));
|
||||
|
||||
buttonMenu->setMenu(menu);
|
||||
buttonOptions->setMenu(menu);
|
||||
connect(menu, SIGNAL(aboutToShow()), this, SLOT(aboutToShowMenu()));
|
||||
|
||||
connect(adblockCheckBox, SIGNAL(toggled(bool)), this, SLOT(enableAdBlock(bool)));
|
||||
|
@ -63,7 +63,7 @@
|
||||
<item row="4" column="0" colspan="2">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QToolButton" name="buttonMenu">
|
||||
<widget class="QPushButton" name="buttonOptions">
|
||||
<property name="text">
|
||||
<string>Options</string>
|
||||
</property>
|
||||
@ -71,12 +71,6 @@
|
||||
<iconset resource="../data/icons.qrc">
|
||||
<normaloff>:/icons/other/adblock.png</normaloff>:/icons/other/adblock.png</iconset>
|
||||
</property>
|
||||
<property name="popupMode">
|
||||
<enum>QToolButton::InstantPopup</enum>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonTextBesideIcon</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
Loading…
Reference in New Issue
Block a user