#include "dolphin_iconsmodesettings.h"
#include "dolphin_searchsettings.h"
+#include <KAcceleratorManager>
#include <KAction>
#include <KActionCollection>
#include <KActionMenu>
#include <KInputDialog>
#include <KLocale>
#include <KProtocolManager>
-#include <KPushButton>
#include <KMenu>
#include <KMenuBar>
#include <KMessageBox>
#include <QDBusMessage>
#include <QKeyEvent>
#include <QClipboard>
+#include <QToolButton>
#include <QSplitter>
-#include <kacceleratormanager.h>
/*
* Remembers the tab configuration if a tab has been closed.
Q_ASSERT(!m_openToolBarMenuButton);
m_toolBarSpacer = new QWidget(this);
- m_toolBarSpacer->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
+ m_toolBarSpacer->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
- m_openToolBarMenuButton = new KPushButton(this);
- m_openToolBarMenuButton->setFlat(true);
+ m_openToolBarMenuButton = new QToolButton(this);
m_openToolBarMenuButton->setIcon(KIcon("configure"));
- m_openToolBarMenuButton->setMaximumWidth(m_openToolBarMenuButton->sizeHint().height());
// Instead of using QPushButton::setMenu() the opening of the menu is done manually
// to prevent the "clutter" of the down-arrow drawn by the style.
class DolphinViewContainer;
class DolphinRemoteEncoding;
class KAction;
+class KJob;
class KNewFileMenu;
-class KPushButton;
class KTabBar;
class KUrl;
class QSplitter;
-class KJob;
+class QToolButton;
/**
* @short Main window for Dolphin.
// Members for the toolbar menu that is shown when the menubar is hidden:
QWidget* m_toolBarSpacer;
- KPushButton* m_openToolBarMenuButton;
+ QToolButton* m_openToolBarMenuButton;
QWeakPointer<KMenu> m_toolBarMenu;
QTimer* m_updateToolBarTimer;