Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
OpenGL
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
C-Fu
OpenGL
Commits
6fa81a8c
Commit
6fa81a8c
authored
Jan 21, 2017
by
Anakin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some styling
parent
c4444bce
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
QtMeshViewer/Resources/Resources.qrc
QtMeshViewer/Resources/Resources.qrc
+1
-0
QtMeshViewer/Resources/StyleSheet.txt
QtMeshViewer/Resources/StyleSheet.txt
+21
-0
QtMeshViewer/Source/MainWindow.cpp
QtMeshViewer/Source/MainWindow.cpp
+9
-0
No files found.
QtMeshViewer/Resources/Resources.qrc
View file @
6fa81a8c
...
...
@@ -8,6 +8,7 @@
</qresource>
<qresource prefix="/files">
<file>about.txt</file>
<file>StyleSheet.txt</file>
</qresource>
<qresource prefix="/images/toolbar">
<file>placeholder.png</file>
...
...
QtMeshViewer/Resources/StyleSheet.txt
0 → 100644
View file @
6fa81a8c
QToolButton#test123 {
color: #000000;
}
QToolButton:checked {
background-color: #ffffff;
border-style: inset;
border-width: 1px;
border-radius: 5px;
border-color: #b3b3b3;
min-height: 25px
}
QToolButton:hover {
border-style: solid;
border-width: 1px;
border-radius: 5px;
border-color: #a4daff;
min-height: 25px
}
QtMeshViewer/Source/MainWindow.cpp
View file @
6fa81a8c
...
...
@@ -35,6 +35,10 @@ MainWindow::MainWindow(QWidget *parent)
ui
->
statusBar
->
showMessage
(
"MeshViewer by Anakin"
,
0
);
m_fileInfo
+=
"Filename: -
\n
Materials: -
\n
Vertices: -
\n
Triangle: -<detail>No file is open"
;
QFile
styleSheet
(
":/files/StyleSheet.txt"
);
styleSheet
.
open
(
QIODevice
::
ReadOnly
);
this
->
setStyleSheet
(
styleSheet
.
readAll
());
}
MainWindow
::~
MainWindow
()
...
...
@@ -118,6 +122,11 @@ void MainWindow::setupWidgets()
connect
(
help
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
aboutTool
);
ui
->
mainToolBar
->
addAction
(
help
);
QAction
*
test
=
new
QAction
(
this
);
test
->
setCheckable
(
true
);
test
->
setObjectName
(
"test123"
);
ui
->
mainToolBar
->
addAction
(
test
);
m_output
->
setObjectName
(
"output"
);
m_output
->
setStyleSheet
(
"QLabel#output{color : white; min-width: 400px; min-height: 50px;}"
);
m_output
->
setAlignment
(
Qt
::
AlignTop
);
...
...
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