mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Turn NotebookTab into a BaseWidget
This commit is contained in:
parent
eb3645a723
commit
f4df262179
|
@ -9,8 +9,7 @@ namespace chatterino {
|
|||
namespace widgets {
|
||||
|
||||
NotebookTab::NotebookTab(Notebook *_notebook)
|
||||
: QWidget(_notebook)
|
||||
, colorScheme(_notebook->colorScheme)
|
||||
: BaseWidget(_notebook)
|
||||
, positionChangedAnimation(this, "pos")
|
||||
, notebook(_notebook)
|
||||
{
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include "widgets/basewidget.hpp"
|
||||
|
||||
#include <QPropertyAnimation>
|
||||
#include <QWidget>
|
||||
#include <boost/property_tree/ptree.hpp>
|
||||
#include <boost/signals2.hpp>
|
||||
#include <boost/signals2/connection.hpp>
|
||||
|
@ -15,7 +16,7 @@ namespace widgets {
|
|||
class Notebook;
|
||||
class NotebookPage;
|
||||
|
||||
class NotebookTab : public QWidget
|
||||
class NotebookTab : public BaseWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -25,8 +26,6 @@ public:
|
|||
explicit NotebookTab(Notebook *_notebook);
|
||||
~NotebookTab();
|
||||
|
||||
ColorScheme &colorScheme;
|
||||
|
||||
void calcSize();
|
||||
|
||||
NotebookPage *page;
|
||||
|
|
Loading…
Reference in a new issue