24 #ifndef DIGIKAM_COMBOBOX_UTILITIES_H
25 #define DIGIKAM_COMBOBOX_UTILITIES_H
32 #include <QPersistentModelIndex>
63 virtual void setWidget(QWidget* widget);
65 void setClearButtonShown(
bool show);
73 void slotTextChanged(
const QString& text);
77 QSize minimumSizeHint()
const override;
78 QSize sizeHint()
const override;
80 void mousePressEvent(QMouseEvent* event)
override;
81 void mouseMoveEvent(QMouseEvent* event)
override;
82 void mouseReleaseEvent(QMouseEvent* event)
override;
83 void mouseDoubleClickEvent(QMouseEvent* event)
override;
84 void keyPressEvent(QKeyEvent* event)
override;
85 void focusInEvent(QFocusEvent* event)
override;
86 void focusOutEvent(QFocusEvent* event)
override;
87 void paintEvent(QPaintEvent* event)
override;
88 void dragEnterEvent(QDragEnterEvent* event)
override;
89 void dragMoveEvent(QDragMoveEvent* e)
override;
90 void dragLeaveEvent(QDragLeaveEvent* e)
override;
91 void dropEvent(QDropEvent* event)
override;
92 void changeEvent(QEvent* event)
override;
93 void contextMenuEvent(QContextMenuEvent* event)
override;
94 void inputMethodEvent(QInputMethodEvent* event)
override;
124 void mouseReleaseEvent(QMouseEvent* event)
override;
143 QModelIndex currentIndex()
const;
144 void setCurrentIndex(
const QModelIndex& index);
146 void hidePopup()
override;
147 void showPopup()
override;
182 void installView(QAbstractItemView* view);
194 bool eventFilter(QObject* watched, QEvent* event)
override;
223 virtual void installView(QAbstractItemView* view =
nullptr);
228 QTreeView* view()
const;
232 void sendViewportEventToView(QEvent* e)
override;
256 QListView* view()
const;
262 virtual void installView(QAbstractItemView* view =
nullptr);
266 void sendViewportEventToView(QEvent* e)
override;
294 void setLineEditText(
const QString& text);
296 void setLineEdit(QLineEdit* edit);
302 void installView(QAbstractItemView* view =
nullptr)
override;
311 virtual void installLineEdit();
Definition: comboboxutilities.h:238
Definition: comboboxutilities.h:130
QPersistentModelIndex m_currentIndex
Definition: comboboxutilities.h:151
Definition: comboboxutilities.h:105
Definition: comboboxutilities.h:46
void signalClearButtonPressed()
QWidget * m_widget
Definition: comboboxutilities.h:98
QVBoxLayout * m_layout
Definition: comboboxutilities.h:99
Definition: comboboxutilities.h:157
virtual void sendViewportEventToView(QEvent *e)=0
QAbstractItemView * m_view
Definition: comboboxutilities.h:198
Definition: comboboxutilities.h:204
Definition: comboboxutilities.h:272
QLineEdit * m_comboLineEdit
Definition: comboboxutilities.h:315
Definition: datefolderview.cpp:43