diff options
author | Ken Moore <ken@pcbsd.org> | 2014-10-27 15:03:38 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2014-10-27 15:03:38 -0400 |
commit | 9482acb96095a6e6c236a72f60995e43d590b75f (patch) | |
tree | f9d5c13c04e69b61bb19107c154d7df2518918d6 /lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h | |
parent | Add a new menu plugin: (diff) | |
download | lumina-9482acb96095a6e6c236a72f60995e43d590b75f.tar.gz lumina-9482acb96095a6e6c236a72f60995e43d590b75f.tar.bz2 lumina-9482acb96095a6e6c236a72f60995e43d590b75f.zip |
Make sure to put a max length on the text in the user button items (180 pixels - auto-scale does not work unless the widget is visible). Also remove the custom stylesheet for the systemwindow (so it uses the theme).
Also start working on the new desktopview plugin (not integrated yet)
Diffstat (limited to 'lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h')
-rw-r--r-- | lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h | 46 |
1 files changed, 17 insertions, 29 deletions
diff --git a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h index 9702e6e4..9dd97423 100644 --- a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h +++ b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h @@ -4,40 +4,28 @@ // Available under the 3-clause BSD license // See the LICENSE file for full details //=========================================== -// This class is the interface to load all the different desktop plugins +// This class is a quick sample desktop plugin //=========================================== -#ifndef _LUMINA_DESKTOP_VIEW_PLUGIN_H -#define _LUMINA_DESKTOP_VIEW_PLUGIN_H - -#include <QDir> -#include <QFile> -#include <QFileSystemWatcher> -#include <QGridLayout> -#include <QStringList> -#include <QList> -#include <QTimer> - -#include <LuminaXDG.h> +#ifndef _LUMINA_DESKTOP_DESKTOP_VIEW_PLUGIN_CALENDAR_H +#define _LUMINA_DESKTOP_DESKTOP_VIEW_PLUGIN_CALENDAR_H +#include <QListWidget> +#include <QVBoxLayout> #include "../LDPlugin.h" -#include "DeskItem.h" - -class DesktopViewPlugin : public LDPlugin{ +class CalendarPlugin : public LDPlugin{ Q_OBJECT public: - DesktopViewPlugin(QWidget *parent = 0); - ~DesktopViewPlugin(); - + DesktopViewPlugin(QWidget* parent, QString ID) : LDPlugin(parent, ID){ + this->setLayout( new QVBoxLayout()); + this->layout()->setContentsMargins(0,0,0,0); + list = new QListWidget(this); + this->layout()->addWidget(list); + } + + ~DesktopViewPlugin(){} + private: - QString deskDir; - QFileSystemWatcher *watcher; - QGridLayout *layout; - int icoSize, spacing; - QList<DeskItem*> ITEMS; - -private slots: - void UpdateDesktop(); - + QListWidget *list; }; -#endif
\ No newline at end of file +#endif |