Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
c4b22269
Commit
c4b22269
authored
Dec 11, 2008
by
con
Browse files
Fixes: - Choose... buttons are push buttons on mac
parent
4f370af4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/utils/pathchooser.cpp
View file @
c4b22269
...
...
@@ -46,11 +46,12 @@
#include <QtGui/QHBoxLayout>
#include <QtGui/QLineEdit>
#include <QtGui/QToolButton>
#include <QtGui/QPushButton>
namespace
Core
{
namespace
Utils
{
#ifdef Q_OS_
OSX
#ifdef Q_OS_
MAC
/*static*/
const
char
*
const
PathChooser
::
browseButtonLabel
=
"Choose..."
;
#else
/*static*/
const
char
*
const
PathChooser
::
browseButtonLabel
=
"Browse..."
;
...
...
@@ -112,7 +113,11 @@ PathChooser::PathChooser(QWidget *parent) :
hLayout
->
addWidget
(
m_d
->
m_lineEdit
);
hLayout
->
setSizeConstraint
(
QLayout
::
SetMinimumSize
);
#ifdef Q_OS_MAC
QPushButton
*
browseButton
=
new
QPushButton
;
#else
QToolButton
*
browseButton
=
new
QToolButton
;
#endif
browseButton
->
setText
(
tr
(
browseButtonLabel
));
connect
(
browseButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
slotBrowse
()));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment