diff options
author | Arno <am@disconnect.de> | 2013-09-14 12:18:39 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-09-14 12:18:39 +0200 |
commit | ab474b97614825636831a81c7ea8097ef7b14af9 (patch) | |
tree | f5c2dd2e1e29ffe3f7d2704ad05dcee39c8a0a03 /archiveview.cpp | |
parent | 361a5c3fbd2a693440491e3720e77a6245ac48d6 (diff) | |
download | SheMov-ab474b97614825636831a81c7ea8097ef7b14af9.tar.gz SheMov-ab474b97614825636831a81c7ea8097ef7b14af9.tar.bz2 SheMov-ab474b97614825636831a81c7ea8097ef7b14af9.zip |
Add toolbars to tabs
Remove global toolbar and add a toolbar to each tab instead.
Diffstat (limited to 'archiveview.cpp')
-rw-r--r-- | archiveview.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archiveview.cpp b/archiveview.cpp index fcfe04d..5fed431 100644 --- a/archiveview.cpp +++ b/archiveview.cpp @@ -23,6 +23,7 @@ #include <QCompleter> #include <QStandardItemModel> #include <QFormLayout> +#include <QToolBar> #include "archiveview.h" #include "archivecontroller.h" @@ -87,6 +88,9 @@ ArchiveView::ArchiveView(QWidget *parent) : QWidget(parent) { QWidget *treeWidget = new QWidget; treeWidget->setLayout(treeLayout); + mToolBar = new QToolBar; + mToolBar->setIconSize(QSize(16,16)); + mFiles = new ArchiveFiles; mFiles->setItemDelegateForColumn(ArchiveFilesModel::FileType, new FileTypeDelegate(this)); mFiles->setItemDelegateForColumn(ArchiveFilesModel::DvdNo, new DvdNoDelegate(this)); @@ -130,6 +134,7 @@ ArchiveView::ArchiveView(QWidget *parent) : QWidget(parent) { bottomRightLayout->addWidget(genreBox); bottomRightLayout->addWidget(metadataBox); QVBoxLayout *rightLayout = new QVBoxLayout; + rightLayout->addWidget(mToolBar); rightLayout->addWidget(mFiles); rightLayout->addLayout(bottomRightLayout); QWidget *rightWidget = new QWidget; |