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
Utilities
Konsole
Commits
d42633e5
Commit
d42633e5
authored
Mar 18, 2012
by
Kurt Hindenburg
Browse files
add explicit to constructors with 1 parameter
parent
e0862c60
Changes
23
Hide whitespace changes
Inline
Side-by-side
src/ColorScheme.h
View file @
d42633e5
...
...
@@ -47,7 +47,7 @@ class ColorSchemeWallpaper : public QSharedData
public:
typedef
KSharedPtr
<
ColorSchemeWallpaper
>
Ptr
;
ColorSchemeWallpaper
(
const
QString
&
path
);
explicit
ColorSchemeWallpaper
(
const
QString
&
path
);
~
ColorSchemeWallpaper
();
void
load
();
...
...
src/ColorSchemeEditor.h
View file @
d42633e5
...
...
@@ -53,7 +53,7 @@ class ColorSchemeEditor : public QWidget
public:
/** Constructs a new color scheme editor with the specified parent. */
ColorSchemeEditor
(
QWidget
*
parent
=
0
);
explicit
ColorSchemeEditor
(
QWidget
*
parent
=
0
);
virtual
~
ColorSchemeEditor
();
/** Initializes the dialog with the properties of the specified color scheme. */
...
...
src/ColorSchemeManager.cpp
View file @
d42633e5
...
...
@@ -51,7 +51,7 @@ public:
* Constructs a new reader which reads from the specified device.
* The device should be open in read-only mode.
*/
KDE3ColorSchemeReader
(
QIODevice
*
device
);
explicit
KDE3ColorSchemeReader
(
QIODevice
*
device
);
/**
* Reads and parses the contents of the .schema file from the input
...
...
src/CopyInputDialog.h
View file @
d42633e5
...
...
@@ -50,7 +50,7 @@ class CopyInputDialog : public KDialog
Q_OBJECT
public:
CopyInputDialog
(
QWidget
*
parent
=
0
);
explicit
CopyInputDialog
(
QWidget
*
parent
=
0
);
~
CopyInputDialog
();
/**
* Sets the 'source' session whose input will be copied to
...
...
@@ -95,7 +95,7 @@ class CheckableSessionModel : public SessionListModel
Q_OBJECT
public:
CheckableSessionModel
(
QObject
*
parent
);
explicit
CheckableSessionModel
(
QObject
*
parent
);
void
setCheckColumn
(
int
column
);
int
checkColumn
()
const
;
...
...
src/EditProfileDialog.h
View file @
d42633e5
...
...
@@ -63,7 +63,7 @@ class KONSOLEPRIVATE_EXPORT EditProfileDialog : public KDialog
public:
/** Constructs a new dialog with the specified parent. */
EditProfileDialog
(
QWidget
*
parent
=
0
);
explicit
EditProfileDialog
(
QWidget
*
parent
=
0
);
virtual
~
EditProfileDialog
();
/**
...
...
@@ -254,7 +254,7 @@ class ColorSchemeViewDelegate : public QAbstractItemDelegate
Q_OBJECT
public:
ColorSchemeViewDelegate
(
QObject
*
parent
=
0
);
explicit
ColorSchemeViewDelegate
(
QObject
*
parent
=
0
);
// reimplemented
virtual
void
paint
(
QPainter
*
painter
,
const
QStyleOptionViewItem
&
option
,
...
...
src/Filter.h
View file @
d42633e5
...
...
@@ -287,7 +287,7 @@ class FilterObject : public QObject
{
Q_OBJECT
public:
FilterObject
(
Filter
::
HotSpot
*
filter
)
:
_filter
(
filter
)
{}
explicit
FilterObject
(
Filter
::
HotSpot
*
filter
)
:
_filter
(
filter
)
{}
private
slots
:
void
activated
();
private:
...
...
src/History.h
View file @
d42633e5
...
...
@@ -85,7 +85,7 @@ class HistoryType;
class
HistoryScroll
{
public:
HistoryScroll
(
HistoryType
*
);
explicit
HistoryScroll
(
HistoryType
*
);
virtual
~
HistoryScroll
();
virtual
bool
hasScroll
();
...
...
@@ -127,7 +127,7 @@ protected:
class
HistoryScrollFile
:
public
HistoryScroll
{
public:
HistoryScrollFile
(
const
QString
&
logFileName
);
explicit
HistoryScrollFile
(
const
QString
&
logFileName
);
virtual
~
HistoryScrollFile
();
virtual
int
getLines
();
...
...
@@ -289,7 +289,7 @@ class CompactHistoryScroll : public HistoryScroll
typedef
QList
<
CompactHistoryLine
*>
HistoryArray
;
public:
CompactHistoryScroll
(
unsigned
int
maxNbLines
=
1000
);
explicit
CompactHistoryScroll
(
unsigned
int
maxNbLines
=
1000
);
virtual
~
CompactHistoryScroll
();
virtual
int
getLines
();
...
...
@@ -371,7 +371,7 @@ protected:
class
CompactHistoryType
:
public
HistoryType
{
public:
CompactHistoryType
(
unsigned
int
size
);
explicit
CompactHistoryType
(
unsigned
int
size
);
virtual
bool
isEnabled
()
const
;
virtual
int
maximumLineCount
()
const
;
...
...
src/HistorySizeDialog.h
View file @
d42633e5
...
...
@@ -41,7 +41,7 @@ public:
/**
* Construct a new history size dialog.
*/
HistorySizeDialog
(
QWidget
*
parent
);
explicit
HistorySizeDialog
(
QWidget
*
parent
);
/** Specifies the type of history scroll */
enum
HistoryMode
{
...
...
src/KeyBindingEditor.h
View file @
d42633e5
...
...
@@ -54,7 +54,7 @@ class KeyBindingEditor : public QWidget
public:
/** Constructs a new key bindings editor with the specified parent. */
KeyBindingEditor
(
QWidget
*
parent
=
0
);
explicit
KeyBindingEditor
(
QWidget
*
parent
=
0
);
virtual
~
KeyBindingEditor
();
/**
...
...
src/KeyboardTranslator.h
View file @
d42633e5
...
...
@@ -257,7 +257,7 @@ public:
};
/** Constructs a new keyboard translator with the given @p name */
KeyboardTranslator
(
const
QString
&
name
);
explicit
KeyboardTranslator
(
const
QString
&
name
);
//KeyboardTranslator(const KeyboardTranslator& other);
...
...
@@ -351,7 +351,7 @@ class KeyboardTranslatorReader
{
public:
/** Constructs a new reader which parses the given @p source */
KeyboardTranslatorReader
(
QIODevice
*
source
);
explicit
KeyboardTranslatorReader
(
QIODevice
*
source
);
/**
* Returns the description text.
...
...
@@ -419,7 +419,7 @@ public:
* Constructs a new writer which saves data into @p destination.
* The caller is responsible for closing the device when writing is complete.
*/
KeyboardTranslatorWriter
(
QIODevice
*
destination
);
explicit
KeyboardTranslatorWriter
(
QIODevice
*
destination
);
~
KeyboardTranslatorWriter
();
/**
...
...
src/ManageProfilesDialog.h
View file @
d42633e5
...
...
@@ -59,7 +59,7 @@ class KONSOLEPRIVATE_EXPORT ManageProfilesDialog : public KDialog
public:
/** Constructs a new profile type with the specified parent. */
ManageProfilesDialog
(
QWidget
*
parent
=
0
);
explicit
ManageProfilesDialog
(
QWidget
*
parent
=
0
);
virtual
~
ManageProfilesDialog
();
/**
...
...
@@ -130,7 +130,7 @@ public:
class
FavoriteItemDelegate
:
public
QStyledItemDelegate
{
public:
FavoriteItemDelegate
(
QObject
*
parent
=
0
);
explicit
FavoriteItemDelegate
(
QObject
*
parent
=
0
);
virtual
bool
editorEvent
(
QEvent
*
event
,
QAbstractItemModel
*
model
,
const
QStyleOptionViewItem
&
option
,
const
QModelIndex
&
index
);
...
...
@@ -143,7 +143,7 @@ class ShortcutItemDelegate : public QStyledItemDelegate
Q_OBJECT
public:
ShortcutItemDelegate
(
QObject
*
parent
=
0
);
explicit
ShortcutItemDelegate
(
QObject
*
parent
=
0
);
virtual
void
setModelData
(
QWidget
*
editor
,
QAbstractItemModel
*
model
,
const
QModelIndex
&
index
)
const
;
virtual
QWidget
*
createEditor
(
QWidget
*
parent
,
const
QStyleOptionViewItem
&
option
,
...
...
src/ProcessInfo.h
View file @
d42633e5
...
...
@@ -408,7 +408,7 @@ public:
*
* @param process A ProcessInfo instance for a SSH process.
*/
SSHProcessInfo
(
const
ProcessInfo
&
process
);
explicit
SSHProcessInfo
(
const
ProcessInfo
&
process
);
/**
* Returns the user name which the user initially logged into on
...
...
src/RenameTabsDialog.h
View file @
d42633e5
...
...
@@ -36,7 +36,7 @@ class RenameTabsDialog : public KDialog
Q_OBJECT
public:
RenameTabsDialog
(
QWidget
*
parent
=
0
);
explicit
RenameTabsDialog
(
QWidget
*
parent
=
0
);
~
RenameTabsDialog
();
QString
tabTitleText
()
const
;
QString
remoteTabTitleText
()
const
;
...
...
src/ScreenWindow.h
View file @
d42633e5
...
...
@@ -64,7 +64,7 @@ public:
* to notify the window when the associated screen has changed and synchronize selection updates
* between all views on a session.
*/
ScreenWindow
(
QObject
*
parent
=
0
);
explicit
ScreenWindow
(
QObject
*
parent
=
0
);
virtual
~
ScreenWindow
();
/** Sets the screen which this window looks onto */
...
...
src/Session.h
View file @
d42633e5
...
...
@@ -752,7 +752,7 @@ class SessionGroup : public QObject
public:
/** Constructs an empty session group. */
SessionGroup
(
QObject
*
parent
);
explicit
SessionGroup
(
QObject
*
parent
);
/** Destroys the session group and removes all connections between master and slave sessions. */
~
SessionGroup
();
...
...
src/SessionController.h
View file @
d42633e5
...
...
@@ -340,7 +340,7 @@ class SessionTask : public QObject
Q_OBJECT
public:
SessionTask
(
QObject
*
parent
=
0
);
explicit
SessionTask
(
QObject
*
parent
=
0
);
/**
* Sets whether the task automatically deletes itself when the task has been finished.
...
...
@@ -392,7 +392,7 @@ class SaveHistoryTask : public SessionTask
public:
/** Constructs a new task to save session output to URLs */
SaveHistoryTask
(
QObject
*
parent
=
0
);
explicit
SaveHistoryTask
(
QObject
*
parent
=
0
);
virtual
~
SaveHistoryTask
();
/**
...
...
src/SessionManager.h
View file @
d42633e5
...
...
@@ -384,7 +384,7 @@ template <class T>
class
PopStackOnExit
{
public:
PopStackOnExit
(
QStack
<
T
>&
stack
)
:
_stack
(
stack
)
,
_count
(
stack
.
count
())
{}
explicit
PopStackOnExit
(
QStack
<
T
>&
stack
)
:
_stack
(
stack
)
,
_count
(
stack
.
count
())
{}
~
PopStackOnExit
()
{
while
(
_stack
.
count
()
>
_count
)
_stack
.
pop
();
...
...
@@ -407,7 +407,7 @@ class SessionListModel : public QAbstractListModel
Q_OBJECT
public:
SessionListModel
(
QObject
*
parent
=
0
);
explicit
SessionListModel
(
QObject
*
parent
=
0
);
/**
* Sets the list of sessions displayed in the model.
...
...
src/ShellCommand.h
View file @
d42633e5
...
...
@@ -58,7 +58,7 @@ public:
*
* @param aCommand The command line to parse.
*/
ShellCommand
(
const
QString
&
aCommand
);
explicit
ShellCommand
(
const
QString
&
aCommand
);
/**
* Constructs a ShellCommand with the specified @p aCommand and @p aArguments.
*/
...
...
src/TabTitleFormatButton.h
View file @
d42633e5
...
...
@@ -35,7 +35,7 @@ class TabTitleFormatButton : public QPushButton
Q_OBJECT
public:
TabTitleFormatButton
(
QWidget
*
parent
);
explicit
TabTitleFormatButton
(
QWidget
*
parent
);
~
TabTitleFormatButton
();
void
setContext
(
Session
::
TabTitleContext
context
);
...
...
src/TerminalDisplay.h
View file @
d42633e5
...
...
@@ -67,7 +67,7 @@ class KONSOLEPRIVATE_EXPORT TerminalDisplay : public QWidget
public:
/** Constructs a new terminal display widget with the specified parent. */
TerminalDisplay
(
QWidget
*
parent
=
0
);
explicit
TerminalDisplay
(
QWidget
*
parent
=
0
);
virtual
~
TerminalDisplay
();
/** Returns the terminal color palette used by the display. */
...
...
@@ -868,7 +868,7 @@ class AutoScrollHandler : public QObject
Q_OBJECT
public:
AutoScrollHandler
(
QWidget
*
parent
);
explicit
AutoScrollHandler
(
QWidget
*
parent
);
protected:
virtual
void
timerEvent
(
QTimerEvent
*
event
);
virtual
bool
eventFilter
(
QObject
*
watched
,
QEvent
*
event
);
...
...
Prev
1
2
Next
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