mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Set toolbar in info comic view.
This commit is contained in:
parent
d9105267ac
commit
5969fbdd87
@ -39,11 +39,15 @@ InfoComicsView::InfoComicsView(QWidget *parent)
|
||||
QLOG_TRACE() << "GridComicsView";
|
||||
}
|
||||
|
||||
InfoComicsView::~InfoComicsView()
|
||||
{
|
||||
delete view;
|
||||
}
|
||||
|
||||
void InfoComicsView::setToolBar(QToolBar *toolBar)
|
||||
{
|
||||
toolBar->setParent(this);
|
||||
|
||||
int FIXME;
|
||||
static_cast<QVBoxLayout *>(this->layout())->insertWidget(1,toolBar);
|
||||
this->toolbar = toolBar;
|
||||
}
|
||||
|
||||
void InfoComicsView::setModel(ComicModel *model)
|
||||
|
@ -14,6 +14,7 @@ class InfoComicsView : public ComicsView
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit InfoComicsView(QWidget *parent = 0);
|
||||
~InfoComicsView();
|
||||
void setToolBar(QToolBar * toolBar);
|
||||
void setModel(ComicModel *model);
|
||||
void setCurrentIndex(const QModelIndex &index);
|
||||
@ -32,6 +33,7 @@ public slots:
|
||||
void selectAll();
|
||||
|
||||
protected:
|
||||
QToolBar * toolbar;
|
||||
QQuickView *view;
|
||||
QWidget *container;
|
||||
QObject *flow;
|
||||
|
Loading…
Reference in New Issue
Block a user