Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
29cd75e8
Commit
29cd75e8
authored
Nov 27, 2009
by
Alexander Wiebel
Browse files
[FIX] correted some sizes in qtgui
parent
e41dd059
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
src/gui/qt4/WMainWindow.cpp
src/gui/qt4/WMainWindow.cpp
+4
-5
src/gui/qt4/datasetbrowser/WQtSliderWithEdit.cpp
src/gui/qt4/datasetbrowser/WQtSliderWithEdit.cpp
+2
-2
No files found.
src/gui/qt4/WMainWindow.cpp
View file @
29cd75e8
...
...
@@ -77,8 +77,9 @@ void WMainWindow::setupGUI()
m_mainGLWidget
->
initialize
();
setCentralWidget
(
m_mainGLWidget
.
get
()
);
//TODO(all): this is commented out
// initially 3 views
//m_navAxial = boost::shared_ptr< WQtNavGLWidget >( new WQtNavGLWidget( "axial", 160, "axialPos" ) );
//
m_navAxial = boost::shared_ptr< WQtNavGLWidget >( new WQtNavGLWidget( "axial", 160, "axialPos" ) );
//m_navAxial->getGLWidget()->initialize();
//addDockWidget( Qt::LeftDockWidgetArea, m_navAxial.get() );
...
...
@@ -116,10 +117,6 @@ void WMainWindow::setupToolBar()
m_toolBar
->
addPushButton
(
QString
(
"buttonSave"
),
QString
(
"File"
),
m_iconManager
.
getIcon
(
"save"
),
QString
(
"Save"
)
);
m_toolBar
->
addPushButton
(
QString
(
"buttonQuit"
),
QString
(
"File"
),
m_iconManager
.
getIcon
(
"quit"
),
QString
(
"Exit"
)
);
m_toolBar
->
getButton
(
QString
(
"buttonLoad"
)
)
->
setMaximumSize
(
50
,
24
);
m_toolBar
->
getButton
(
QString
(
"buttonSave"
)
)
->
setMaximumSize
(
50
,
24
);
m_toolBar
->
getButton
(
QString
(
"buttonQuit"
)
)
->
setMaximumSize
(
50
,
24
);
// the parent (this) will take care for deleting the shortcut
QShortcut
*
shortcut
=
new
QShortcut
(
QKeySequence
(
tr
(
"Ctrl+Q"
,
"File|Exit"
)
),
this
);
connect
(
shortcut
,
SIGNAL
(
activated
()
),
this
,
SLOT
(
close
()
)
);
...
...
@@ -229,6 +226,8 @@ void WMainWindow::closeEvent( QCloseEvent* e )
// now nobody acesses the osg anymore
// clean up gl widgets
m_mainGLWidget
->
close
();
//TODO(all): this is commented out
//m_navAxial->close();
//m_navCoronal->close();
//m_navSagittal->close();
...
...
src/gui/qt4/datasetbrowser/WQtSliderWithEdit.cpp
View file @
29cd75e8
...
...
@@ -37,8 +37,8 @@ WQtSliderWithEdit::WQtSliderWithEdit( QString name, QWidget* parent )
m_layout
.
addWidget
(
&
m_slider
);
m_layout
.
addWidget
(
&
m_edit
);
m_edit
.
resize
(
10
,
m_edit
.
size
().
height
()
);
m_edit
.
setMaximumWidth
(
25
);
m_edit
.
resize
(
m_edit
.
minimumSizeHint
().
width
()
,
m_edit
.
size
().
height
()
);
m_edit
.
setMaximumWidth
(
m_edit
.
minimumSizeHint
().
width
()
);
setLayout
(
&
m_layout
);
...
...
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