SHARE
TWEET

taglist.h

a guest Aug 11th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef TAGLIST_H
  2. #define TAGLIST_H
  3.  
  4. #include <QWidget>
  5. #include <QStackedLayout>
  6. #include <QListWidget>
  7. #include <QMenu>
  8. #include <QString>
  9. #include <QLabel>
  10.  
  11. class TagList : public QWidget
  12. {
  13.     Q_OBJECT
  14.  
  15. public:
  16.     explicit TagList(QWidget *parent = nullptr);
  17.  
  18.     void addTag(QString name);
  19.  
  20. private:
  21.     QStackedLayout* layout;
  22.     QListWidget* viewingArea;
  23.     QString styleSheetGreen;
  24.     QString styleSheetRed;
  25.  
  26. public slots:
  27.     void showContextMenu(const QPoint& point);
  28.     void removeSelectedTags();
  29. };
  30.  
  31. #endif // TAGLIST_H
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top