Commit df057b9f authored by Peter Penz's avatar Peter Penz
Browse files

coding style cleanup: fix wrong indenting of members in constructor

svn path=/trunk/KDE/kdebase/apps/; revision=661819
parent 7db0361e
......@@ -28,10 +28,10 @@
ApplyViewPropsJob::ApplyViewPropsJob(const KUrl& dir,
const ViewProperties& viewProps) :
KIO::Job(),
m_viewProps(0),
m_progress(0),
m_dir(dir)
KIO::Job(),
m_viewProps(0),
m_progress(0),
m_dir(dir)
{
m_viewProps = new ViewProperties(dir);
m_viewProps->setViewMode(viewProps.viewMode());
......
......@@ -36,13 +36,13 @@
#include <QSpinBox>
ColumnViewSettingsPage::ColumnViewSettingsPage(DolphinMainWindow* mainWindow,
QWidget* parent) :
KVBox(parent),
m_mainWindow(mainWindow),
m_smallIconSize(0),
m_mediumIconSize(0),
m_largeIconSize(0),
m_fontRequester(0)
QWidget* parent) :
KVBox(parent),
m_mainWindow(mainWindow),
m_smallIconSize(0),
m_mediumIconSize(0),
m_largeIconSize(0),
m_fontRequester(0)
{
const int spacing = KDialog::spacingHint();
const int margin = KDialog::marginHint();
......@@ -108,7 +108,8 @@ ColumnViewSettingsPage::ColumnViewSettingsPage(DolphinMainWindow* mainWindow,
}
ColumnViewSettingsPage::~ColumnViewSettingsPage()
{}
{
}
void ColumnViewSettingsPage::applySettings()
{
......
......@@ -27,7 +27,7 @@
#include <QDBusConnection>
DolphinApplication::DolphinApplication() :
m_lastId(0)
m_lastId(0)
{
new ApplicationAdaptor(this);
QDBusConnection::sessionBus().registerObject("/dolphin/Application", this);
......
......@@ -32,8 +32,8 @@
#include <QPoint>
DolphinColumnView::DolphinColumnView(QWidget* parent, DolphinController* controller) :
QColumnView(parent),
m_controller(controller)
QColumnView(parent),
m_controller(controller)
{
Q_ASSERT(controller != 0);
......@@ -73,7 +73,8 @@ DolphinColumnView::DolphinColumnView(QWidget* parent, DolphinController* control
}
DolphinColumnView::~DolphinColumnView()
{}
{
}
QStyleOptionViewItem DolphinColumnView::viewOptions() const
{
......
......@@ -50,10 +50,10 @@
DolphinContextMenu::DolphinContextMenu(DolphinMainWindow* parent,
KFileItem* fileInfo,
const KUrl& baseUrl) :
m_mainWindow(parent),
m_fileInfo(fileInfo),
m_baseUrl(baseUrl),
m_context(NoContext)
m_mainWindow(parent),
m_fileInfo(fileInfo),
m_baseUrl(baseUrl),
m_context(NoContext)
{
// The context menu either accesses the URLs of the selected items
// or the items itself. To increase the performance both lists are cached.
......
......@@ -20,14 +20,16 @@
#include "dolphincontroller.h"
DolphinController::DolphinController(QObject* parent) :
QObject(parent),
m_showPreview(false),
m_zoomInPossible(false),
m_zoomOutPossible(false)
{}
QObject(parent),
m_showPreview(false),
m_zoomInPossible(false),
m_zoomOutPossible(false)
{
}
DolphinController::~DolphinController()
{}
{
}
void DolphinController::triggerContextMenuRequest(const QPoint& pos)
{
......
......@@ -33,8 +33,8 @@
#include <QHeaderView>
DolphinDetailsView::DolphinDetailsView(QWidget* parent, DolphinController* controller) :
QTreeView(parent),
m_controller(controller)
QTreeView(parent),
m_controller(controller)
{
Q_ASSERT(controller != 0);
......
......@@ -22,11 +22,13 @@
#include <kio/jobclasses.h>
DolphinDirLister::DolphinDirLister() :
KDirLister()
{}
KDirLister()
{
}
DolphinDirLister::~DolphinDirLister()
{}
{
}
void DolphinDirLister::handleError(KIO::Job* job)
{
......
......@@ -28,11 +28,13 @@
#include <QSortFilterProxyModel>
DolphinItemCategorizer::DolphinItemCategorizer() :
KItemCategorizer()
{}
KItemCategorizer()
{
}
DolphinItemCategorizer::~DolphinItemCategorizer()
{}
{
}
QString DolphinItemCategorizer::categoryForItem(const QModelIndex& index,
int sortRole)
......
......@@ -73,11 +73,11 @@
#include <QDockWidget>
DolphinMainWindow::DolphinMainWindow(int id) :
KXmlGuiWindow(0),
m_newMenu(0),
m_splitter(0),
m_activeView(0),
m_id(id)
KXmlGuiWindow(0),
m_newMenu(0),
m_splitter(0),
m_activeView(0),
m_id(id)
{
setObjectName("Dolphin");
m_view[PrimaryIdx] = 0;
......
......@@ -27,12 +27,14 @@
#include <kio/job.h>
DolphinNewMenu::DolphinNewMenu(DolphinMainWindow* mainWin) :
KNewMenu(mainWin->actionCollection(), mainWin, "create_new"),
m_mainWin(mainWin)
{}
KNewMenu(mainWin->actionCollection(), mainWin, "create_new"),
m_mainWin(mainWin)
{
}
DolphinNewMenu::~DolphinNewMenu()
{}
{
}
void DolphinNewMenu::slotResult(KJob* job)
{
......
......@@ -49,10 +49,10 @@ static DolphinView::Sorting dirModelColumnToDolphinView[] =
DolphinSortFilterProxyModel::DolphinSortFilterProxyModel(QObject* parent) :
QSortFilterProxyModel(parent),
m_sortColumn(0),
m_sorting(DolphinView::SortByName),
m_sortOrder(Qt::AscendingOrder)
QSortFilterProxyModel(parent),
m_sortColumn(0),
m_sorting(DolphinView::SortByName),
m_sortOrder(Qt::AscendingOrder)
{
setDynamicSortFilter(true);
......
......@@ -31,11 +31,11 @@
#include <kvbox.h>
DolphinStatusBar::DolphinStatusBar(DolphinView* parent) :
KHBox(parent),
m_messageLabel(0),
m_spaceInfo(0),
m_progressBar(0),
m_progress(100)
KHBox(parent),
m_messageLabel(0),
m_spaceInfo(0),
m_progressBar(0),
m_progress(100)
{
setSpacing(4);
......
......@@ -32,7 +32,7 @@
#include "dolphinmainwindow.h"
FilterBar::FilterBar(QWidget* parent) :
QWidget(parent)
QWidget(parent)
{
const int gap = 3;
......@@ -65,7 +65,8 @@ FilterBar::FilterBar(QWidget* parent) :
}
FilterBar::~FilterBar()
{}
{
}
void FilterBar::hideEvent(QHideEvent* event)
{
......
......@@ -39,12 +39,12 @@
#include "dolphin_generalsettings.h"
GeneralSettingsPage::GeneralSettingsPage(DolphinMainWindow* mainWin, QWidget* parent) :
SettingsPageBase(parent),
m_mainWindow(mainWin),
m_homeUrl(0),
m_startSplit(0),
m_startEditable(0),
m_showDeleteCommand(0)
SettingsPageBase(parent),
m_mainWindow(mainWin),
m_homeUrl(0),
m_startSplit(0),
m_startEditable(0),
m_showDeleteCommand(0)
{
const int spacing = KDialog::spacingHint();
GeneralSettings* settings = DolphinSettings::instance().generalSettings();
......
......@@ -37,12 +37,12 @@
#include <khbox.h>
GeneralViewSettingsPage::GeneralViewSettingsPage(DolphinMainWindow* mainWindow,
QWidget* parent) :
KVBox(parent),
m_mainWindow(mainWindow),
m_localProps(0),
m_globalProps(0),
m_maxPreviewSize(0)
QWidget* parent) :
KVBox(parent),
m_mainWindow(mainWindow),
m_localProps(0),
m_globalProps(0),
m_maxPreviewSize(0)
{
GeneralSettings* settings = DolphinSettings::instance().generalSettings();
Q_ASSERT(settings != 0);
......
......@@ -34,14 +34,13 @@
#include <QVBoxLayout>
IconSizeDialog::IconSizeDialog(QWidget* parent) :
KDialog(parent),
m_iconSize(0),
m_previewSize(0),
m_iconSizeSlider(0),
m_iconSizeViewer(0),
m_previewSizeSlider(0),
m_previewSizeViewer(0)
KDialog(parent),
m_iconSize(0),
m_previewSize(0),
m_iconSizeSlider(0),
m_iconSizeViewer(0),
m_previewSizeSlider(0),
m_previewSizeViewer(0)
{
IconsModeSettings* settings = DolphinSettings::instance().iconsModeSettings();
Q_ASSERT(settings != 0);
......@@ -112,7 +111,8 @@ IconSizeDialog::IconSizeDialog(QWidget* parent) :
}
IconSizeDialog::~IconSizeDialog()
{}
{
}
void IconSizeDialog::slotButtonClicked(int button)
{
......
......@@ -40,17 +40,17 @@
#include <QtDebug>
IconsViewSettingsPage::IconsViewSettingsPage(DolphinMainWindow* mainWindow,
QWidget* parent) :
KVBox(parent),
m_mainWindow(mainWindow),
m_iconSize(0),
m_previewSize(0),
m_iconSizeButton(0),
m_textWidthBox(0),
m_fontRequester(0),
m_textlinesCountBox(0),
m_arrangementBox(0),
m_gridSpacingBox(0)
QWidget* parent) :
KVBox(parent),
m_mainWindow(mainWindow),
m_iconSize(0),
m_previewSize(0),
m_iconSizeButton(0),
m_textWidthBox(0),
m_fontRequester(0),
m_textlinesCountBox(0),
m_arrangementBox(0),
m_gridSpacingBox(0)
{
const int spacing = KDialog::spacingHint();
const int margin = KDialog::marginHint();
......
......@@ -26,8 +26,8 @@
#include <QVBoxLayout>
RenameDialog::RenameDialog(const KUrl::List& items) :
KDialog(),
m_renameOneItem(false)
KDialog(),
m_renameOneItem(false)
{
const QSize minSize = minimumSize();
setMinimumSize(QSize(320, minSize.height()));
......
......@@ -27,7 +27,7 @@
#include <QHeaderView>
SidebarTreeView::SidebarTreeView(QWidget* parent) :
QTreeView(parent)
QTreeView(parent)
{
setAcceptDrops(true);
setUniformRowHeights(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment