Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenWalnut Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
44
Issues
44
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
6eb98ff0
Commit
6eb98ff0
authored
Jul 30, 2012
by
Sebastian Eichelbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CHANGE
#198
] min max edit can now be hidden using the setting added by alex.
parent
b4fc0542
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
12 deletions
+14
-12
src/qt4gui/qt4/controlPanel/WPropertyDoubleWidget.cpp
src/qt4gui/qt4/controlPanel/WPropertyDoubleWidget.cpp
+3
-2
src/qt4gui/qt4/controlPanel/WPropertyDoubleWidget.h
src/qt4gui/qt4/controlPanel/WPropertyDoubleWidget.h
+1
-1
src/qt4gui/qt4/controlPanel/WPropertyIntWidget.cpp
src/qt4gui/qt4/controlPanel/WPropertyIntWidget.cpp
+3
-2
src/qt4gui/qt4/controlPanel/WPropertyIntWidget.h
src/qt4gui/qt4/controlPanel/WPropertyIntWidget.h
+1
-1
src/qt4gui/qt4/guiElements/WQtIntervalEdit.cpp
src/qt4gui/qt4/guiElements/WQtIntervalEdit.cpp
+1
-1
src/qt4gui/qt4/guiElements/WQtIntervalEdit.h
src/qt4gui/qt4/guiElements/WQtIntervalEdit.h
+5
-5
No files found.
src/qt4gui/qt4/controlPanel/WPropertyDoubleWidget.cpp
View file @
6eb98ff0
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
//
//
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <algorithm>
#include <cmath>
#include <cmath>
#include <limits>
#include <limits>
#include <sstream>
#include <sstream>
...
@@ -39,7 +40,7 @@
...
@@ -39,7 +40,7 @@
#include "WPropertyDoubleWidget.h"
#include "WPropertyDoubleWidget.h"
#include "WPropertyDoubleWidget.moc"
#include "WPropertyDoubleWidget.moc"
const
int
WPropertyDoubleWidget
::
SliderResolution
=
10000
;
int
WPropertyDoubleWidget
::
SliderResolution
=
10000
;
WPropertyDoubleWidget
::
WPropertyDoubleWidget
(
WPropDouble
property
,
QGridLayout
*
propertyGrid
,
QWidget
*
parent
)
:
WPropertyDoubleWidget
::
WPropertyDoubleWidget
(
WPropDouble
property
,
QGridLayout
*
propertyGrid
,
QWidget
*
parent
)
:
WPropertyWidget
(
property
,
propertyGrid
,
parent
),
WPropertyWidget
(
property
,
propertyGrid
,
parent
),
...
@@ -123,7 +124,7 @@ void WPropertyDoubleWidget::update()
...
@@ -123,7 +124,7 @@ void WPropertyDoubleWidget::update()
// updating the interval edit causes the proper values to be set in m_min and m_max
// updating the interval edit causes the proper values to be set in m_min and m_max
m_slider
.
setHidden
(
false
);
m_slider
.
setHidden
(
false
);
m_intervalEdit
.
setHidden
(
false
);
m_intervalEdit
.
setHidden
(
!
WQt4Gui
::
getSettings
().
value
(
"qt4gui/sliderMinMaxEdit"
,
false
).
toBool
()
);
m_slider
.
setValue
(
toSliderValue
(
m_integralProperty
->
get
()
)
);
m_slider
.
setValue
(
toSliderValue
(
m_integralProperty
->
get
()
)
);
}
}
else
else
...
...
src/qt4gui/qt4/controlPanel/WPropertyDoubleWidget.h
View file @
6eb98ff0
...
@@ -133,7 +133,7 @@ protected:
...
@@ -133,7 +133,7 @@ protected:
/**
/**
* Resolution of the slider.
* Resolution of the slider.
*/
*/
const
static
int
SliderResolution
;
static
int
SliderResolution
;
private:
private:
public
slots
:
public
slots
:
...
...
src/qt4gui/qt4/controlPanel/WPropertyIntWidget.cpp
View file @
6eb98ff0
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
//
//
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <algorithm>
#include <cmath>
#include <cmath>
#include <limits>
#include <limits>
#include <sstream>
#include <sstream>
...
@@ -39,7 +40,7 @@
...
@@ -39,7 +40,7 @@
#include "WPropertyIntWidget.h"
#include "WPropertyIntWidget.h"
#include "WPropertyIntWidget.moc"
#include "WPropertyIntWidget.moc"
const
int
WPropertyIntWidget
::
SliderResolution
=
10000
;
int
WPropertyIntWidget
::
SliderResolution
=
10000
;
WPropertyIntWidget
::
WPropertyIntWidget
(
WPropInt
property
,
QGridLayout
*
propertyGrid
,
QWidget
*
parent
)
:
WPropertyIntWidget
::
WPropertyIntWidget
(
WPropInt
property
,
QGridLayout
*
propertyGrid
,
QWidget
*
parent
)
:
WPropertyWidget
(
property
,
propertyGrid
,
parent
),
WPropertyWidget
(
property
,
propertyGrid
,
parent
),
...
@@ -123,7 +124,7 @@ void WPropertyIntWidget::update()
...
@@ -123,7 +124,7 @@ void WPropertyIntWidget::update()
// updating the interval edit causes the proper values to be set in m_min and m_max
// updating the interval edit causes the proper values to be set in m_min and m_max
m_slider
.
setHidden
(
false
);
m_slider
.
setHidden
(
false
);
m_intervalEdit
.
setHidden
(
false
);
m_intervalEdit
.
setHidden
(
!
WQt4Gui
::
getSettings
().
value
(
"qt4gui/sliderMinMaxEdit"
,
false
).
toBool
()
);
m_slider
.
setValue
(
toSliderValue
(
m_integralProperty
->
get
()
)
);
m_slider
.
setValue
(
toSliderValue
(
m_integralProperty
->
get
()
)
);
}
}
else
else
...
...
src/qt4gui/qt4/controlPanel/WPropertyIntWidget.h
View file @
6eb98ff0
...
@@ -135,7 +135,7 @@ protected:
...
@@ -135,7 +135,7 @@ protected:
/**
/**
* Resolution of the slider.
* Resolution of the slider.
*/
*/
const
static
int
SliderResolution
;
static
int
SliderResolution
;
private:
private:
public
slots
:
public
slots
:
...
...
src/qt4gui/qt4/guiElements/WQtIntervalEdit.cpp
View file @
6eb98ff0
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include "WQtIntervalEdit.h"
#include "WQtIntervalEdit.h"
#include "WQtIntervalEdit.moc"
#include "WQtIntervalEdit.moc"
const
int
WQtIntervalEditBase
::
SliderResolution
=
10000
;
int
WQtIntervalEditBase
::
SliderResolution
=
10000
;
WQtIntervalEditBase
::
WQtIntervalEditBase
(
QWidget
*
parent
)
:
WQtIntervalEditBase
::
WQtIntervalEditBase
(
QWidget
*
parent
)
:
QWidget
(
parent
),
QWidget
(
parent
),
...
...
src/qt4gui/qt4/guiElements/WQtIntervalEdit.h
View file @
6eb98ff0
...
@@ -52,7 +52,7 @@ public:
...
@@ -52,7 +52,7 @@ public:
*
*
* \param parent the parent widget
* \param parent the parent widget
*/
*/
WQtIntervalEditBase
(
QWidget
*
parent
);
explicit
WQtIntervalEditBase
(
QWidget
*
parent
);
/**
/**
* Destructor.
* Destructor.
...
@@ -66,12 +66,12 @@ public:
...
@@ -66,12 +66,12 @@ public:
signals:
signals:
/**
/**
* Called whenever the user changes the current minimum OR
\ref
setMin was called.
* Called whenever the user changes the current minimum OR setMin was called.
*/
*/
void
minimumChanged
();
void
minimumChanged
();
/**
/**
* Called whenever the user changes the current ,aximum OR
\ref
setMax was called.
* Called whenever the user changes the current ,aximum OR setMax was called.
*/
*/
void
maximumChanged
();
void
maximumChanged
();
...
@@ -101,7 +101,7 @@ protected:
...
@@ -101,7 +101,7 @@ protected:
/**
/**
* Resolution of the sliders.
* Resolution of the sliders.
*/
*/
const
static
int
SliderResolution
;
static
int
SliderResolution
;
/**
/**
* The slider for the minimum.
* The slider for the minimum.
...
@@ -155,7 +155,7 @@ public:
...
@@ -155,7 +155,7 @@ public:
*
*
* \param parent the parent widget
* \param parent the parent widget
*/
*/
WQtIntervalEdit
(
QWidget
*
parent
);
explicit
WQtIntervalEdit
(
QWidget
*
parent
);
/**
/**
* Destructor.
* Destructor.
...
...
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