removed no longer needed includes

This commit is contained in:
Luis Ángel San Martín 2015-12-11 19:14:50 +01:00
parent ef33a90c1a
commit e3cf09f402
6 changed files with 13 additions and 15 deletions

View File

@ -115,7 +115,6 @@ HEADERS += ../common/comic.h \
goto_flow_widget.h \ goto_flow_widget.h \
page_label_widget.h \ page_label_widget.h \
goto_flow_toolbar.h \ goto_flow_toolbar.h \
goto_flow_decorationbar.h \
width_slider.h \ width_slider.h \
notifications_label_widget.h \ notifications_label_widget.h \
../common/pictureflow.h \ ../common/pictureflow.h \
@ -159,7 +158,6 @@ SOURCES += ../common/comic.cpp \
goto_flow_widget.cpp \ goto_flow_widget.cpp \
page_label_widget.cpp \ page_label_widget.cpp \
goto_flow_toolbar.cpp \ goto_flow_toolbar.cpp \
goto_flow_decorationbar.cpp \
width_slider.cpp \ width_slider.cpp \
notifications_label_widget.cpp \ notifications_label_widget.cpp \
../common/pictureflow.cpp \ ../common/pictureflow.cpp \

View File

@ -24,7 +24,6 @@
#include "yacreader_flow.h" #include "yacreader_flow.h"
#include "goto_flow_toolbar.h" #include "goto_flow_toolbar.h"
#include "goto_flow_decorationbar.h"
GoToFlow::GoToFlow(QWidget *parent,FlowType flowType) GoToFlow::GoToFlow(QWidget *parent,FlowType flowType)

View File

@ -10,7 +10,7 @@
#include "configuration.h" #include "configuration.h"
#include "goto_flow_toolbar.h" #include "goto_flow_toolbar.h"
#include "goto_flow_decorationbar.h"
GoToFlowGL::GoToFlowGL(QWidget* parent, FlowType flowType) GoToFlowGL::GoToFlowGL(QWidget* parent, FlowType flowType)
:GoToFlowWidget(parent) :GoToFlowWidget(parent)

View File

@ -1,12 +1,6 @@
#include "goto_flow_toolbar.h" #include "goto_flow_toolbar.h"
#include <QLineEdit> #include <QtWidgets>
#include <QIntValidator>
#include <QPushButton>
#include <QLabel>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QResizeEvent>
GoToFlowToolBar::GoToFlowToolBar(QWidget * parent) GoToFlowToolBar::GoToFlowToolBar(QWidget * parent)
:QWidget(parent) :QWidget(parent)
@ -90,7 +84,14 @@ GoToFlowToolBar::GoToFlowToolBar(QWidget * parent)
bar->setGeometry(QRect(0,0,400,50)); bar->setGeometry(QRect(0,0,400,50));
} }
void GoToFlowToolBar::paintEvent(QPaintEvent *)
{
QPainter painter(this);
painter.fillRect(0,0,width(),height(),QColor("#BB000000"));
}
void GoToFlowToolBar::setPage(int pageNumber) void GoToFlowToolBar::setPage(int pageNumber)
{ {
edit->setText(QString::number(pageNumber+1)); edit->setText(QString::number(pageNumber+1));
@ -119,4 +120,4 @@ void GoToFlowToolBar::centerSlide()
{ {
if(edit->text().toInt()!=0) if(edit->text().toInt()!=0)
emit(setCenter(edit->text().toInt()-1)); emit(setCenter(edit->text().toInt()-1));
} }

View File

@ -17,6 +17,7 @@ class GoToFlowToolBar : public QWidget
QPushButton * goToButton; QPushButton * goToButton;
QWidget * bar; QWidget * bar;
void resizeEvent(QResizeEvent * event); void resizeEvent(QResizeEvent * event);
void paintEvent(QPaintEvent *);
public: public:
GoToFlowToolBar(QWidget * parent = 0); GoToFlowToolBar(QWidget * parent = 0);
@ -30,4 +31,4 @@ class GoToFlowToolBar : public QWidget
void goTo(unsigned int); void goTo(unsigned int);
}; };
#endif #endif

View File

@ -6,7 +6,6 @@
#include <QCoreApplication> #include <QCoreApplication>
#include "goto_flow_toolbar.h" #include "goto_flow_toolbar.h"
#include "goto_flow_decorationbar.h"
GoToFlowWidget::GoToFlowWidget(QWidget * parent) GoToFlowWidget::GoToFlowWidget(QWidget * parent)
:QWidget(parent) :QWidget(parent)