diff options
| author | Peter Penz <[email protected]> | 2012-01-05 20:41:59 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-01-05 20:44:46 +0100 |
| commit | 33eea8c9293b061d4483f17b7070c823ae8e001c (patch) | |
| tree | 1d974d7b60d6e30d59618e467c14c6dc79d9993d /src/kitemviews/kitemlistcontroller.h | |
| parent | c8d8556950005dfd96ebdb41d2f43ad90356367c (diff) | |
Folders Panel: Activate folders on single-click
Even if double-click is used as default setting, the folders panel should
open folders with a single-click.
BUG: 289971
FIXED-IN: 4.8.0
Diffstat (limited to 'src/kitemviews/kitemlistcontroller.h')
| -rw-r--r-- | src/kitemviews/kitemlistcontroller.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistcontroller.h b/src/kitemviews/kitemlistcontroller.h index b8de195eb..b7efbde74 100644 --- a/src/kitemviews/kitemlistcontroller.h +++ b/src/kitemviews/kitemlistcontroller.h @@ -104,6 +104,15 @@ public: void setAutoActivationDelay(int delay); int autoActivationDelay() const; + /** + * If set to true, the signals itemActivated() and itemsActivated() are emitted + * after a single-click of the left mouse button. If set to false, a double-click + * is required. Per default the setting from KGlobalSettings::singleClick() is + * used. + */ + void setSingleClickActivation(bool singleClick); + bool singleClickActivation() const; + virtual bool showEvent(QShowEvent* event); virtual bool hideEvent(QHideEvent* event); virtual bool keyPressEvent(QKeyEvent* event); @@ -249,6 +258,7 @@ private: qreal keyboardAnchorPos(int index) const; private: + bool m_singleClickActivation; bool m_selectionTogglePressed; SelectionBehavior m_selectionBehavior; KItemModelBase* m_model; |
