diff options
author | Arno <arno@disconnect.de> | 2018-04-03 06:25:48 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-04-03 06:25:48 +0200 |
commit | 2213d00d25b6b3127e33a0df63cae54d29748d06 (patch) | |
tree | 8005412b1e7afa8e012a5364336adf0b347ae912 | |
parent | d261247e5f79f53544c4d0d8b20f37f754622adb (diff) | |
download | SheMov-2213d00d25b6b3127e33a0df63cae54d29748d06.tar.gz SheMov-2213d00d25b6b3127e33a0df63cae54d29748d06.tar.bz2 SheMov-2213d00d25b6b3127e33a0df63cae54d29748d06.zip |
FSWidget: add configure action
-rw-r--r-- | fswidget.cpp | 4 | ||||
-rw-r--r-- | fswidget.h | 1 | ||||
-rw-r--r-- | shemov.cpp | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/fswidget.cpp b/fswidget.cpp index cdeb839..117193e 100644 --- a/fswidget.cpp +++ b/fswidget.cpp @@ -75,6 +75,10 @@ void FSWidget::setupWidget(){ QAction *previewA = new QAction(QIcon(":/snapshot.png"), tr("Preview..."), this); connect(previewA, &QAction::triggered, this, &FSWidget::preview); toolbar->addAction(previewA); + QAction *configA = new QAction(QIcon(":/chastity_belt.png"), tr("Configure"), this); + connect(configA, &QAction::triggered, this, &FSWidget::needConfig); + toolbar->addSeparator(); + toolbar->addAction(configA); QAction *playSelectedA = new QAction(QIcon(":/spreadingpants.png"), tr("Play selected"), this); connect(playSelectedA, &QAction::triggered, [=] { playSelected(1, QString()); }); playSelectedA->setShortcut(Qt::Key_Return); @@ -49,6 +49,7 @@ class FSWidget : public QWidget { void message(QString msg); void selectionChanged(int count, qint64 size, qint64 duration); void needRefreshFs(); + void needConfig(); private: void setupWidget(); @@ -71,6 +71,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla setDuration(duration, false); }); connect(mFileWidget, &FSWidget::needRefreshFs, this, &SheMov::setFsFree); + connect(mFileWidget, &FSWidget::needConfig, this, &SheMov::configure); //experimental splash.showMessage(tr("Creating Movie archive..."), Qt::AlignHCenter, Qt::yellow); @@ -149,6 +150,7 @@ SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, fla connect(this, &SheMov::configChanged, mFSWidget->fileView(), &FileView::readConfig); connect(this, &SheMov::configChanged, picViewer, &PictureViewer2::readSettings); connect(this, &SheMov::configChanged, c->archiveTreeModel(), &ArchiveModel::readConfig); + connect(this, &SheMov::configChanged, mFileWidget, &FSWidget::readSettings); connect(mFSWidget, &FilesystemWidget::mounted, this, &SheMov::checkMount); QWidget *centralWidget = new QWidget; |