diff options
| author | Nate Graham <[email protected]> | 2020-11-17 16:15:57 -0700 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2020-11-28 19:06:28 +0000 |
| commit | 78c7429a35c9bdbcdb76fd6304210237e5dbc2f5 (patch) | |
| tree | c606c9b75f98afaa230128273a4239c494acffb2 /src/views/dolphinview.h | |
| parent | ac862c8e2daf15058cdb3e9faddae15a9b44c2e0 (diff) | |
Add placeholder text for empty views
Throughout our QML-based software, we now display placeholder text for
empty views so that the user knows that the view is actually empty, and
it's not that the software is just broken.
This commit introduces the same thing for Dolphin's main view.
BUG: 429248
BUG: 426354
FIXED-IN: 21.04
Diffstat (limited to 'src/views/dolphinview.h')
| -rw-r--r-- | src/views/dolphinview.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 1d0ebe0fe..cc3409732 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -32,6 +32,7 @@ class KItemSet; class ToolTipManager; class VersionControlObserver; class ViewProperties; +class QLabel; class QGraphicsSceneDragDropEvent; class QRegularExpression; @@ -804,6 +805,8 @@ private: void abortTwoClicksRenaming(); + void updatePlaceholderLabel(); + private: void updatePalette(); @@ -841,6 +844,7 @@ private: QTimer* m_twoClicksRenamingTimer; QUrl m_twoClicksRenamingItemUrl; + QLabel* m_placeholderLabel; // For unit tests friend class TestBase; |
