Sayonara Player
HistoryContainer.h
1 #ifndef HISTORYCONTAINER_H
2 #define HISTORYCONTAINER_H
3 
4 #include "Gui/Library/LibraryContainer.h"
5 #include "Utils/Pimpl.h"
6 
8  public Library::Container
9 {
10  Q_OBJECT
11  PIMPL(HistoryContainer)
12 
13 public:
14  HistoryContainer(QObject* parent=nullptr);
15  ~HistoryContainer() override;
16 
17  // Container interface
18 public:
19  QString name() const override;
20  QString displayName() const override;
21  QWidget* widget() const override;
22  QFrame* header() const override;
23  QPixmap icon() const override;
24 
25  // ContainerImpl interface
26 protected:
27  void initUi() override;
28 };
29 
30 #endif // HISTORYCONTAINER_H
Definition: LibraryContainer.h:37
QWidget * widget() const override
Should return the UI for the library view.
QString name() const override
Should return an untranslated name used for identifying this widget.
QPixmap icon() const override
Every library should show a icon in the combo box.
QFrame * header() const override
this is a frame at the top left of the container where the combo box will be located
void initUi() override
Should initialize the ui. The ui constructor should be called within this function.
QString displayName() const override
Should return the translated name displayed in the library view combobox.
Definition: HistoryContainer.h:7