diff options
author | Ken Moore <ken@pcbsd.org> | 2014-09-19 14:22:37 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-09-19 14:22:37 -0400 |
commit | 6aca0b96c833bb14fbf3a90170ca861b6d1e8935 (patch) | |
tree | fd5a57c8bf7777107c3b312c1229f8ba230a3cdd /lumina-desktop/panel-plugins/userbutton/UserWidget.h | |
parent | Add support for detecting whether the running user has permission to shutdown... (diff) | |
download | lumina-6aca0b96c833bb14fbf3a90170ca861b6d1e8935.tar.gz lumina-6aca0b96c833bb14fbf3a90170ca861b6d1e8935.tar.bz2 lumina-6aca0b96c833bb14fbf3a90170ca861b6d1e8935.zip |
Update the appearance/functionality of the userbutton quite a bit in lumina-desktop.
1) Should now only reload the applications list if the installed apps changed recently, making the menu show up a ton faster.
2) Move the tabs over to the left side of the UI, and remove a lot of empty space.
3) Attempt to have the widget track the mouse and switch to a new tab on mouse-over instead of requiring a click (still in testing - no loss of functionality at the moment).
Diffstat (limited to 'lumina-desktop/panel-plugins/userbutton/UserWidget.h')
-rw-r--r-- | lumina-desktop/panel-plugins/userbutton/UserWidget.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lumina-desktop/panel-plugins/userbutton/UserWidget.h b/lumina-desktop/panel-plugins/userbutton/UserWidget.h index 132969ad..a2cedb03 100644 --- a/lumina-desktop/panel-plugins/userbutton/UserWidget.h +++ b/lumina-desktop/panel-plugins/userbutton/UserWidget.h @@ -16,6 +16,9 @@ #include <QVBoxLayout> #include <QScrollArea> #include <QDateTime> +#include <QTransform> +#include <QMouseEvent> +#include <QTabWidget> #include <LuminaXDG.h> #include <LuminaOS.h> @@ -30,7 +33,7 @@ namespace Ui{ class UserWidget; }; -class UserWidget : public QWidget{ +class UserWidget : public QTabWidget{ Q_OBJECT public: UserWidget(QWidget *parent=0); @@ -45,6 +48,7 @@ private: QDateTime lastUpdate; int cfav; //current favorite category void ClearScrollArea(QScrollArea *area); + QIcon rotateIcon(QIcon); private slots: void LaunchItem(QString cmd); @@ -77,6 +81,9 @@ private slots: LaunchItem(SSAVER); } +protected: + void mouseMoveEvent( QMouseEvent *event); + signals: void CloseMenu(); |