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
c80cd8cf
Commit
c80cd8cf
authored
Apr 20, 2010
by
Alexander Wiebel
Browse files
[FIX
#307
] hopefully this makes the gui look nicer again.
parent
6fd605d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
src/gui/qt4/WQtNavGLWidget.cpp
src/gui/qt4/WQtNavGLWidget.cpp
+1
-1
src/gui/qt4/datasetbrowser/WPropertyDoubleWidget.cpp
src/gui/qt4/datasetbrowser/WPropertyDoubleWidget.cpp
+3
-3
src/gui/qt4/datasetbrowser/WPropertyIntWidget.cpp
src/gui/qt4/datasetbrowser/WPropertyIntWidget.cpp
+5
-4
No files found.
src/gui/qt4/WQtNavGLWidget.cpp
View file @
c80cd8cf
...
...
@@ -54,7 +54,7 @@ WQtNavGLWidget::WQtNavGLWidget( QString title, QWidget* parent, std::string slid
m_glWidget
->
setFixedSize
(
150
,
150
);
m_glWidget
->
initialize
();
setMinimumSize
(
160
,
2
3
0
);
setMinimumSize
(
160
,
2
4
0
);
setSizePolicy
(
QSizePolicy
::
Preferred
,
QSizePolicy
::
Maximum
);
m_scene
=
new
WGEScene
();
...
...
src/gui/qt4/datasetbrowser/WPropertyDoubleWidget.cpp
View file @
c80cd8cf
...
...
@@ -41,7 +41,7 @@ WPropertyDoubleWidget::WPropertyDoubleWidget( WPropDouble property, QGridLayout*
m_layout
(
&
m_parameterWidgets
)
{
// initialize members
m_edit
.
resize
(
m_edit
.
minimumSizeHint
().
width
()
,
m_edit
.
size
().
height
()
);
m_edit
.
resize
(
m_edit
.
minimumSizeHint
().
width
()
*
.8
,
m_edit
.
size
().
height
()
);
m_edit
.
setMaximumWidth
(
m_edit
.
minimumSizeHint
().
width
()
);
// layout both against each other
...
...
@@ -128,8 +128,8 @@ void WPropertyDoubleWidget::update()
// resize the text widget
//m_edit.setMaxLength( length );
m_edit
.
setMaximumWidth
(
m_edit
.
minimumSizeHint
().
width
()
*
length
/
2
);
m_edit
.
setMinimumWidth
(
m_edit
.
minimumSizeHint
().
width
()
*
length
/
2
);
m_edit
.
resize
(
m_edit
.
minimumSizeHint
().
width
()
*
length
/
2
,
m_edit
.
size
().
height
()
);
//
m_edit.setMinimumWidth( m_edit.minimumSizeHint().width() * length /
4
);
//
m_edit.resize( m_edit.minimumSizeHint().width() * length / 2, m_edit.size().height() );
// set the initial values
m_edit
.
setText
(
QString
(
toString
(
m_doubleProperty
->
get
()
).
c_str
()
)
);
...
...
src/gui/qt4/datasetbrowser/WPropertyIntWidget.cpp
View file @
c80cd8cf
...
...
@@ -42,7 +42,7 @@ WPropertyIntWidget::WPropertyIntWidget( WPropInt property, QGridLayout* property
m_layout
(
&
m_parameterWidgets
)
{
// initialize members
m_edit
.
resize
(
m_edit
.
minimumSizeHint
().
width
()
,
m_edit
.
size
().
height
()
);
m_edit
.
resize
(
m_edit
.
minimumSizeHint
().
width
(),
m_edit
.
size
().
height
()
);
m_edit
.
setMaximumWidth
(
m_edit
.
minimumSizeHint
().
width
()
);
// layout both against each other
...
...
@@ -112,10 +112,11 @@ void WPropertyIntWidget::update()
int
length
=
6
;
// use fixed length to have a uniform look among several widgets
// resize the text widget
m_edit
.
setMaxLength
(
length
);
//
m_edit.setMaxLength( length );
m_edit
.
setMaximumWidth
(
m_edit
.
minimumSizeHint
().
width
()
*
length
/
2
);
m_edit
.
setMinimumWidth
(
m_edit
.
minimumSizeHint
().
width
()
*
length
/
2
);
m_edit
.
resize
(
m_edit
.
minimumSizeHint
().
width
()
*
length
/
2
,
m_edit
.
size
().
height
()
);
// m_edit.setMinimumWidth( m_edit.minimumSizeHint().width() * length / 4 );
// m_edit.resize( m_edit.minimumSizeHint().width() * length / 4, m_edit.size().height() );
// set the initial values
m_edit
.
setText
(
QString
(
boost
::
lexical_cast
<
std
::
string
>
(
m_intProperty
->
get
()
).
c_str
()
)
);
...
...
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