Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Integration
Commits
a1c8bbe2
Commit
a1c8bbe2
authored
Oct 24, 2020
by
Laurent Montel
Browse files
initialize pointer/values
parent
c87209c4
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/platformtheme/kdeplatformfiledialogbase_p.h
View file @
a1c8bbe2
...
...
@@ -52,7 +52,7 @@ Q_SIGNALS:
protected:
void
closeEvent
(
QCloseEvent
*
e
)
override
;
QDialogButtonBox
*
m_buttons
;
QDialogButtonBox
*
m_buttons
=
nullptr
;
};
#endif
src/platformtheme/kdeplatformfiledialoghelper.h
View file @
a1c8bbe2
...
...
@@ -46,7 +46,7 @@ public:
QList
<
QUrl
>
selectedFiles
()
override
;
protected:
KFileWidget
*
m_fileWidget
;
KFileWidget
*
const
m_fileWidget
;
};
class
KDEPlatformFileDialogHelper
:
public
QPlatformFileDialogHelper
...
...
@@ -81,7 +81,7 @@ private Q_SLOTS:
private:
void
restoreSize
();
KDEPlatformFileDialogBase
*
m_dialog
;
KDEPlatformFileDialogBase
*
m_dialog
=
nullptr
;
bool
m_directorySet
=
false
;
bool
m_fileSelected
=
false
;
bool
m_dialogInitialized
=
false
;
...
...
src/platformtheme/kdeplatformsystemtrayicon.cpp
View file @
a1c8bbe2
...
...
@@ -304,7 +304,6 @@ QAction *SystemTrayMenuItem::action() const
KDEPlatformSystemTrayIcon
::
KDEPlatformSystemTrayIcon
()
:
QPlatformSystemTrayIcon
()
,
m_sni
(
nullptr
)
{
}
...
...
src/platformtheme/kdeplatformsystemtrayicon.h
View file @
a1c8bbe2
...
...
@@ -115,7 +115,7 @@ public:
QPlatformMenu
*
createMenu
()
const
override
;
private:
KStatusNotifierItem
*
m_sni
;
KStatusNotifierItem
*
m_sni
=
nullptr
;
};
#endif
src/platformtheme/kdirselectdialog.cpp
View file @
a1c8bbe2
...
...
@@ -68,8 +68,7 @@ public:
Private
(
bool
localOnly
,
KDirSelectDialog
*
parent
)
:
m_parent
(
parent
),
m_localOnly
(
localOnly
),
m_comboLocked
(
false
),
m_urlCombo
(
nullptr
)
m_comboLocked
(
false
)
{
}
...
...
@@ -87,21 +86,21 @@ public:
void
slotDelete
();
void
slotProperties
();
KDirSelectDialog
*
m_parent
;
KDirSelectDialog
*
const
m_parent
;
bool
m_localOnly
:
1
;
bool
m_comboLocked
:
1
;
QUrl
m_rootUrl
;
QUrl
m_startDir
;
KFileTreeView
*
m_treeView
;
QMenu
*
m_contextMenu
;
KActionCollection
*
m_actions
;
KFilePlacesView
*
m_placesView
;
KHistoryComboBox
*
m_urlCombo
;
KFileTreeView
*
m_treeView
=
nullptr
;
QMenu
*
m_contextMenu
=
nullptr
;
KActionCollection
*
m_actions
=
nullptr
;
KFilePlacesView
*
m_placesView
=
nullptr
;
KHistoryComboBox
*
m_urlCombo
=
nullptr
;
QString
m_recentDirClass
;
QUrl
m_startURL
;
QAction
*
moveToTrash
;
QAction
*
deleteAction
;
QAction
*
showHiddenFoldersAction
;
QAction
*
moveToTrash
=
nullptr
;
QAction
*
deleteAction
=
nullptr
;
QAction
*
showHiddenFoldersAction
=
nullptr
;
};
void
KDirSelectDialog
::
Private
::
readConfig
(
const
KSharedConfig
::
Ptr
&
config
,
const
QString
&
group
)
...
...
src/platformtheme/kfiletreeview.cpp
View file @
a1c8bbe2
...
...
@@ -47,9 +47,9 @@ public:
void
_k_currentChanged
(
const
QModelIndex
&
,
const
QModelIndex
&
);
void
_k_expanded
(
const
QModelIndex
&
);
KFileTreeView
*
q
;
KDirModel
*
mSourceModel
;
KDirSortFilterProxyModel
*
mProxyModel
;
KFileTreeView
*
const
q
;
KDirModel
*
mSourceModel
=
nullptr
;
KDirSortFilterProxyModel
*
mProxyModel
=
nullptr
;
};
QUrl
KFileTreeView
::
Private
::
urlForProxyIndex
(
const
QModelIndex
&
index
)
const
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment