18 #ifndef QGSCOLLAPSIBLEGROUPBOX_H
19 #define QGSCOLLAPSIBLEGROUPBOX_H
26 #include <QToolButton>
27 #include <QMouseEvent>
51 mAltDown = (
event->modifiers() & ( Qt::AltModifier | Qt::ControlModifier ) );
52 mShiftDown = (
event->modifiers() & Qt::ShiftModifier );
75 Q_PROPERTY(
bool collapsed READ isCollapsed WRITE setCollapsed USER
true )
76 Q_PROPERTY( QString syncGroup READ syncGroup WRITE setSyncGroup )
83 bool isCollapsed()
const {
return mCollapsed; }
84 void setCollapsed(
bool collapse );
88 void setSyncGroup( QString grp );
95 void collapsedStateChanged(
bool collapsed );
98 void checkToggled(
bool ckd );
99 void checkClicked(
bool ckd );
100 void toggleCollapsed();
106 void collapseExpandFixes();
108 void showEvent( QShowEvent *event );
109 void mousePressEvent( QMouseEvent *event );
110 void mouseReleaseEvent( QMouseEvent *event );
111 void changeEvent( QEvent *event );
114 QRect titleRect()
const;
115 void clearModifiers();
149 Q_PROPERTY(
bool collapsed READ isCollapsed WRITE setCollapsed USER
true )
150 Q_PROPERTY(
bool saveCollapsedState READ saveCollapsedState WRITE setSaveCollapsedState )
151 Q_PROPERTY(
bool saveCheckedState READ saveCheckedState WRITE setSaveCheckedState )
152 Q_PROPERTY( QString syncGroup READ syncGroup WRITE setSyncGroup )
160 void setSettings( QSettings* settings );
163 void setSaveCollapsedState(
bool save ) { mSaveCollapsedState = save; }
182 QString saveKey()
const;