mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
removed no longer needed includes
This commit is contained in:
parent
ef33a90c1a
commit
e3cf09f402
@ -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 \
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user