26 #ifndef DIGIKAM_DEXPANDER_BOX_H
27 #define DIGIKAM_DEXPANDER_BOX_H
35 #include <QScrollArea>
74 QSize minimumSizeHint()
const override;
75 QSize sizeHint()
const override;
77 void setAlignment(Qt::Alignment align);
78 void setElideMode(Qt::TextElideMode mode);
80 QString adjustedText()
const;
84 void setAdjustedText(
const QString& text = QString());
88 void resizeEvent(QResizeEvent*)
override;
89 void adjustTextToLabel();
92 QString text()
const {
return QString(); };
93 void setText(
const QString&) {};
110 explicit DClickLabel(QWidget*
const parent =
nullptr);
111 explicit DClickLabel(
const QString& text, QWidget*
const parent =
nullptr);
124 void mousePressEvent(QMouseEvent* event)
override;
125 void mouseReleaseEvent(QMouseEvent* event)
override;
126 void keyPressEvent(QKeyEvent* event)
override;
148 void mousePressEvent(QMouseEvent* event)
override;
149 void mouseReleaseEvent(QMouseEvent* event)
override;
150 void keyPressEvent(QKeyEvent* event)
override;
164 void setArrowType(Qt::ArrowType arrowType);
165 Qt::ArrowType arrowType()
const;
167 QSize sizeHint ()
const override;
175 void mousePressEvent(QMouseEvent* event)
override;
176 void mouseReleaseEvent(QMouseEvent* event)
override;
177 void paintEvent(QPaintEvent* event)
override;
197 void setCheckBoxVisible(
bool b);
198 bool checkBoxIsVisible()
const;
200 void setChecked(
bool b);
201 bool isChecked()
const;
203 void setLineVisible(
bool b);
204 bool lineIsVisible()
const;
206 void setText(
const QString& txt);
207 QString text()
const;
209 void setIcon(
const QIcon &icon);
212 void setWidget(QWidget*
const widget);
213 QWidget* widget()
const;
215 void setExpanded(
bool b);
216 bool isExpanded()
const;
218 void setExpandByDefault(
bool b);
219 bool isExpandByDefault()
const;
228 void slotToggleContainer();
232 bool eventFilter(QObject* obj,
233 QEvent* ev)
override;
260 void addItem(QWidget*
const w,
const QIcon &icon,
const QString& txt,
261 const QString& objName,
bool expandBydefault);
262 void addItem(QWidget*
const w,
const QString& txt,
263 const QString& objName,
bool expandBydefault);
273 void insertItem(
int index, QWidget*
const w,
const QIcon &icon,
const QString& txt,
274 const QString& objName,
bool expandBydefault);
275 void insertItem(
int index, QWidget*
const w,
const QString& txt,
276 const QString& objName,
bool expandBydefault);
278 void removeItem(
int index);
280 void setCheckBoxVisible(
int index,
bool b);
281 bool checkBoxIsVisible(
int index)
const;
283 void setChecked(
int index,
bool b);
284 bool isChecked(
int index)
const;
286 void setItemText(
int index,
const QString& txt);
287 QString itemText (
int index)
const;
289 void setItemIcon(
int index,
const QIcon &icon);
290 QIcon itemIcon(
int index)
const;
292 void setItemToolTip(
int index,
const QString& tip);
293 QString itemToolTip(
int index)
const;
295 void setItemEnabled(
int index,
bool enabled);
296 bool isItemEnabled(
int index)
const;
299 void insertStretch(
int index);
301 void setItemExpanded(
int index,
bool b);
302 bool isItemExpanded(
int index)
const;
309 virtual void readSettings(KConfigGroup& group);
310 virtual void writeSettings(KConfigGroup& group);
319 void slotItemExpanded(
bool b);
320 void slotItemToggled(
bool b);
342 void setIsToolBox(
bool b);
343 bool isToolBox()
const;
347 void slotItemExpanded(
bool b);
Definition: dexpanderbox.h:66
Definition: dexpanderbox.h:156
int m_margin
Definition: dexpanderbox.h:183
int m_size
Definition: dexpanderbox.h:182
Qt::ArrowType m_arrowType
Definition: dexpanderbox.h:181
Definition: dexpanderbox.h:105
void leftClicked()
Emitted when activated by left mouse click.
void activated()
Emitted when activated, by mouse or key press.
Definition: dexpanderbox.h:331
Definition: dexpanderbox.h:244
void signalItemToggled(int index, bool b)
void signalItemExpanded(int index, bool b)
Definition: dexpanderbox.h:189
void signalExpanded(bool)
Definition: dexpanderbox.h:132
@ Orientation
Definition: coredbfields.h:86
Definition: datefolderview.cpp:43