Remove unused class TabBar
DELETE
src/tabbar.cpp
-#include "tabbar.h"
-
-#include <QLabel>
-#include <QVBoxLayout>
-
-namespace Ripes {
-
-TabItem::TabItem(QString iconPath, QString name, TabBar* parent) : QWidget(parent) {
- m_name = new QLabel(name);
-
- auto iconLabel = new QLabel();
- iconLabel->setPixmap(QPixmap(iconPath));
- auto layout = new QVBoxLayout();
-
- layout->addWidget(iconLabel);
- layout->addWidget(m_name);
-
- setLayout(layout);
-}
-
-// ---------------- TabBar ---------------------
-
-TabBar::TabBar(QWidget* parent) : QListWidget(parent) {}
-
-void TabBar::addTabItem(QString label, QString iconPath) {
- auto listItem = new QListWidgetItem(label);
- auto tabItem = new TabItem(iconPath, label, this);
-
- setItemWidget(listItem, tabItem);
-
- addItem(listItem);
-}
-} // namespace Ripes

DELETE
src/tabbar.h
-#pragma once
-
-#include <QLabel>
-#include <QListWidget>
-
-namespace Ripes {
-
-class TabBar;
-
-class TabItem : public QWidget {
- Q_OBJECT
-public:
- TabItem(QString iconPath, QString name, TabBar* parent = nullptr);
-
-private:
- QIcon* m_icon;
- QLabel* m_name;
-};
-
-class TabBar : public QListWidget {
- Q_OBJECT
-public:
- explicit TabBar(QWidget* parent = nullptr);
-
- void addTabItem(QString label, QString iconPath);
-};
-
-} // namespace Ripes

Remove unused class TabBar