diff options
author | Arno <am@disconnect.de> | 2010-05-12 17:20:09 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-05-12 17:20:09 +0200 |
commit | 11187b64f4473cf8b7993e323e0f6d0294f6609e (patch) | |
tree | eaebbf826253b910e75caf6e9479782c9b6e2b2e /shemov.cpp | |
parent | ce5cb5bc57ae95ca920b0a8b4715a201a491d897 (diff) | |
download | SheMov-11187b64f4473cf8b7993e323e0f6d0294f6609e.tar.gz SheMov-11187b64f4473cf8b7993e323e0f6d0294f6609e.tar.bz2 SheMov-11187b64f4473cf8b7993e323e0f6d0294f6609e.zip |
Solved issue with mRefreshA in FilesystemWidget
FilesystemWidget needs a pointer to the QAction triggering a refresh to
disable it under certain circumstances. The current solution was to
search the actions() of a child widget for a specific string in
QAction::data(). Don't like it.
Now SheMov sets the refresh action via a member function of
FilesystemWidget.
Diffstat (limited to 'shemov.cpp')
-rw-r--r-- | shemov.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -280,7 +280,7 @@ void SheMov::createActions(){ connect(mDeleteFilesA, SIGNAL(triggered()), mFSWidget, SLOT(deleteFiles())); mRefreshA = new QAction(tr("Refresh"), this); mRefreshA->setShortcut(Qt::Key_F4); - mRefreshA->setData("RE"); + mFSWidget->setRefreshAction(mRefreshA); connect(mRefreshA, SIGNAL(triggered()), mFSWidget->fileView(), SLOT(refresh())); connect(mRefreshA, SIGNAL(triggered()), this, SLOT(setFsFree())); mCopyA = new QAction(tr("Copy file(s)..."), this); |