Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
30
qt/qt_common/scale_slider.hpp
Normal file
30
qt/qt_common/scale_slider.hpp
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#pragma once
|
||||
|
||||
#include <QtCore/Qt>
|
||||
#include <QtWidgets/QSlider>
|
||||
|
||||
class QToolBar;
|
||||
|
||||
namespace qt
|
||||
{
|
||||
namespace common
|
||||
{
|
||||
class MapWidget;
|
||||
|
||||
class ScaleSlider : public QSlider
|
||||
{
|
||||
public:
|
||||
ScaleSlider(Qt::Orientation orient, QWidget * parent);
|
||||
|
||||
static void Embed(Qt::Orientation orient, QToolBar & toolBar, MapWidget & mapWidget);
|
||||
|
||||
double GetScaleFactor() const;
|
||||
void SetPosWithBlockedSignals(double pos);
|
||||
|
||||
private:
|
||||
void SetRange(int low, int up);
|
||||
|
||||
int m_factor;
|
||||
};
|
||||
} // namespace common
|
||||
} // namespace qt
|
||||
Loading…
Add table
Add a link
Reference in a new issue