Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class QgsDoubleSpinBox : QDoubleSpinBox | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsdoublespinbox.h> | ||
%End | ||
|
||
public: | ||
explicit QgsDoubleSpinBox( QWidget *parent /TransferThis/ = 0 ); | ||
|
||
//! determines if the widget will show a clear button | ||
//! @note the clear button will set the widget to its minimum value | ||
void setShowClearButton( const bool showClearButton ); | ||
bool showClearButton() const; | ||
|
||
//! Set the current value to the minimum | ||
virtual void clear(); | ||
|
||
protected: | ||
virtual void resizeEvent( QResizeEvent* event ); | ||
virtual void changeEvent( QEvent* event ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class QgsSpinBox : QSpinBox | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsspinbox.h> | ||
%End | ||
|
||
public: | ||
explicit QgsSpinBox( QWidget *parent /TransferThis/ = 0 ); | ||
|
||
//! determines if the widget will show a clear button | ||
//! @note the clear button will set the widget to its minimum value | ||
void setShowClearButton( const bool showClearButton ); | ||
bool showClearButton() const; | ||
|
||
//! Set the current value to the minimum | ||
virtual void clear(); | ||
|
||
protected: | ||
virtual void resizeEvent( QResizeEvent* event ); | ||
virtual void changeEvent( QEvent* event ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters