Bug reported by kde-bug-hunter "lemma".
svn path=/trunk/KDE/kdebase/apps/; revision=804037
selectionmanager.cpp
tooltipmanager.cpp
viewproperties.cpp
+ viewpropertiesdialog.cpp
+ viewpropsprogressinfo.cpp
+ additionalinfodialog.cpp
+ applyviewpropsjob.cpp
)
kde4_add_kcfg_files(dolphinprivate_LIB_SRCS
##########################################
set(dolphin_SRCS
- additionalinfodialog.cpp
- applyviewpropsjob.cpp
columnviewsettingspage.cpp
commentwidget.cpp
commenteditwidget.cpp
treeviewcontextmenu.cpp
treeviewsidebarpage.cpp
sidebartreeview.cpp
- viewpropertiesdialog.cpp
viewsettingspage.cpp
viewsettingspagebase.cpp
- viewpropsprogressinfo.cpp)
+ )
kde4_add_kcfg_files(dolphin_SRCS
dolphin_folderspanelsettings.kcfgc)
#include "metadatawidget.h"
#include "mainwindowadaptor.h"
#include "treeviewsidebarpage.h"
-#include "viewpropertiesdialog.h"
#include "viewproperties.h"
#ifndef Q_OS_WIN
lineEdit->setSelection(0, text.length());
}
-void DolphinMainWindow::adjustViewProperties()
-{
- clearStatusBar();
- ViewPropertiesDialog dlg(m_activeViewContainer->view());
- dlg.exec();
-}
-
void DolphinMainWindow::goBack()
{
clearStatusBar();
editLocation->setShortcut(Qt::Key_F6);
connect(editLocation, SIGNAL(triggered()), this, SLOT(editLocation()));
- KAction* adjustViewProps = actionCollection()->addAction("view_properties");
- adjustViewProps->setText(i18nc("@action:inmenu View", "Adjust View Properties..."));
- connect(adjustViewProps, SIGNAL(triggered()), this, SLOT(adjustViewProperties()));
-
// setup 'Go' menu
KAction* backAction = KStandardAction::back(this, SLOT(goBack()), actionCollection());
KShortcut backShortcut = backAction->shortcut();
*/
void editLocation();
- /**
- * Opens the view properties dialog, which allows to modify the properties
- * of the currently active view.
- */
- void adjustViewProperties();
-
/** Goes back on step of the URL history. */
void goBack();
***************************************************************************/
#include "dolphinviewactionhandler.h"
-#include <kdebug.h>
+#include "viewpropertiesdialog.h"
#include "dolphinview.h"
#include <konq_operations.h>
#include <kaction.h>
#include <kactioncollection.h>
+#include <kdebug.h>
#include <klocale.h>
#include <ktoggleaction.h>
showHiddenFiles->setShortcut(Qt::ALT | Qt::Key_Period);
connect(showHiddenFiles, SIGNAL(triggered(bool)), this, SLOT(toggleShowHiddenFiles(bool)));
+ KAction* adjustViewProps = m_actionCollection->addAction("view_properties");
+ adjustViewProps->setText(i18nc("@action:inmenu View", "Adjust View Properties..."));
+ connect(adjustViewProps, SIGNAL(triggered()), this, SLOT(slotAdjustViewProperties()));
}
QActionGroup* DolphinViewActionHandler::createAdditionalInformationActionGroup()
const DolphinView::Sorting sorting = action->data().value<DolphinView::Sorting>();
m_currentView->setSorting(sorting);
}
+
+void DolphinViewActionHandler::slotAdjustViewProperties()
+{
+ emit actionBeingHandled();
+ ViewPropertiesDialog dlg(m_currentView);
+ dlg.exec();
+}
*/
void slotShowHiddenFilesChanged();
+ /**
+ * Opens the view properties dialog, which allows to modify the properties
+ * of the currently active view.
+ */
+ void slotAdjustViewProperties();
+
private:
/**
* Create all the actions.
#ifndef VIEWPROPERTIESDIALOG_H
#define VIEWPROPERTIESDIALOG_H
+#include "libdolphin_export.h"
+
#include <kdialog.h>
class QCheckBox;
* and previews should be shown. The properties can be assigned to the current folder,
* or recursively to all sub folders.
*/
-class ViewPropertiesDialog : public KDialog
+class LIBDOLPHINPRIVATE_EXPORT ViewPropertiesDialog : public KDialog
{
Q_OBJECT