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
fb72a54a
Commit
fb72a54a
authored
Jul 30, 2010
by
Lasse Holmstedt
Browse files
QML Observer: Don't use the custom style on mac
Makes it look ugly
parent
95d3e5c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tools/qml/qmlobserver/qmlruntime.cpp
View file @
fb72a54a
...
...
@@ -587,21 +587,23 @@ QDeclarativeViewer::QDeclarativeViewer(QWidget *parent, Qt::WindowFlags flags)
canvas
=
new
QmlViewer
::
QDeclarativeDesignView
(
this
);
addToolBar
(
Qt
::
TopToolBarArea
,
canvas
->
toolbar
());
QFile
file
(
":/toolbarstyle.css"
);
file
.
open
(
QFile
::
ReadOnly
);
QString
toolbarStylesheet
=
QLatin1String
(
file
.
readAll
());
canvas
->
toolbar
()
->
setFloatable
(
false
);
canvas
->
toolbar
()
->
setMovable
(
false
);
canvas
->
toolbar
()
->
setStyleSheet
(
toolbarStylesheet
);
m_centralWidget
=
new
QWidget
(
this
);
QVBoxLayout
*
layout
=
new
QVBoxLayout
(
m_centralWidget
);
layout
->
setMargin
(
0
);
layout
->
setSpacing
(
0
);
layout
->
addWidget
(
canvas
->
crumblePathWidget
());
#ifndef Q_WS_MAC
QFile
file
(
":/toolbarstyle.css"
);
file
.
open
(
QFile
::
ReadOnly
);
QString
toolbarStylesheet
=
QLatin1String
(
file
.
readAll
());
canvas
->
toolbar
()
->
setStyleSheet
(
toolbarStylesheet
);
canvas
->
crumblePathWidget
()
->
setStyleSheet
(
"QWidget { border-bottom: 1px solid black; }"
);
#endif
layout
->
addWidget
(
canvas
);
m_centralWidget
->
setSizePolicy
(
QSizePolicy
::
MinimumExpanding
,
QSizePolicy
::
MinimumExpanding
);
...
...
Write
Preview
Markdown
is supported
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