From e6d10c86ecdde7fd99377c37ff1dbf773c2aee91 Mon Sep 17 00:00:00 2001 From: Leandro Melo Date: Mon, 28 Feb 2011 15:53:37 +0100 Subject: [PATCH] Make PathChooser always use QPushButtons It might look a little bigger, but since we are using QPushButtons by default in the options pages it's more uniform considering the buttons around. If we "conclude" it looks weird or unpleasant in other places (like in the wizards, for example) we can consider an alternative approach. Reviewed-by: con --- src/libs/utils/pathchooser.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libs/utils/pathchooser.cpp b/src/libs/utils/pathchooser.cpp index 0dedc62d57a..1a6150a5550 100644 --- a/src/libs/utils/pathchooser.cpp +++ b/src/libs/utils/pathchooser.cpp @@ -50,7 +50,6 @@ #include #include #include -#include #include /*static*/ const char * const Utils::PathChooser::browseButtonLabel = @@ -262,11 +261,7 @@ PathChooser::~PathChooser() void PathChooser::addButton(const QString &text, QObject *receiver, const char *slotFunc) { -#ifdef Q_WS_MAC QPushButton *button = new QPushButton; -#else - QToolButton *button = new QToolButton; -#endif button->setText(text); connect(button, SIGNAL(clicked()), receiver, slotFunc); m_d->m_hLayout->addWidget(button);