Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
KSystemLog
Commits
6a4bdb34
Commit
6a4bdb34
authored
Jan 12, 2021
by
Laurent Montel
😁
Browse files
Clean up code
parent
52f475d8
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/configurationDialog.cpp
View file @
6a4bdb34
...
...
@@ -57,7 +57,7 @@ void ConfigurationDialog::setupLogModeConfigurations()
const
auto
logModes
=
Globals
::
instance
().
logModes
();
for
(
LogMode
*
logMode
:
logModes
)
{
// Some Log mode does not need a configuration widget
if
(
logMode
->
logModeConfigurationWidget
()
==
nullptr
)
{
if
(
!
logMode
->
logModeConfigurationWidget
())
{
continue
;
}
...
...
src/lib/analyzer.cpp
View file @
6a4bdb34
...
...
@@ -66,7 +66,7 @@ void Analyzer::setParsingPaused(bool paused)
void
Analyzer
::
setLogViewModel
(
LogViewModel
*
logViewModel
)
{
this
->
mLogViewModel
=
logViewModel
;
mLogViewModel
=
logViewModel
;
}
void
Analyzer
::
informOpeningProgress
(
int
currentPosition
,
int
total
)
...
...
src/lib/logMode.h
View file @
6a4bdb34
...
...
@@ -55,11 +55,11 @@ public:
QIcon
icon
;
QAction
*
action
;
QAction
*
action
=
nullptr
;
LogModeItemBuilder
*
itemBuilder
;
LogModeItemBuilder
*
itemBuilder
=
nullptr
;
LogModeConfigurationWidget
*
logModeConfigurationWidget
;
LogModeConfigurationWidget
*
logModeConfigurationWidget
=
nullptr
;
QSharedPointer
<
LogModeConfiguration
>
logModeConfiguration
;
...
...
src/mainWindow.cpp
View file @
6a4bdb34
...
...
@@ -249,7 +249,7 @@ void MainWindow::updateReloading()
{
View
*
currentView
=
mTabs
->
activeLogManager
()
->
usedView
();
bool
enabled
=
!
currentView
->
logViewWidget
()
->
model
()
->
isProcessingMultipleInsertions
();
const
bool
enabled
=
!
currentView
->
logViewWidget
()
->
model
()
->
isProcessingMultipleInsertions
();
mReloadAction
->
setEnabled
(
enabled
);
mResumePauseAction
->
setEnabled
(
enabled
);
...
...
src/statusBar.cpp
View file @
6a4bdb34
...
...
@@ -43,10 +43,10 @@ StatusBar::StatusBar(QWidget *parent)
mLineCountLabel
->
setLineWidth
(
2
);
mLineCountLabel
->
setMidLineWidth
(
2
);
addPermanentWidget
(
mLineCountLabel
,
1
);
mMessageList
=
new
K
ComboBox
(
this
);
mMessageList
=
new
Q
ComboBox
(
this
);
mMessageList
->
setInsertPolicy
(
QComboBox
::
InsertAtTop
);
mMessageList
->
setMaxVisibleItems
(
5
);
connect
(
mMessageList
,
QOverload
<
int
>::
of
(
&
K
ComboBox
::
currentIndexChanged
),
this
,
&
StatusBar
::
selectLastHistory
);
connect
(
mMessageList
,
QOverload
<
int
>::
of
(
&
Q
ComboBox
::
currentIndexChanged
),
this
,
&
StatusBar
::
selectLastHistory
);
addPermanentWidget
(
mMessageList
,
4
);
mLastModificationLabel
=
new
QLabel
(
this
);
...
...
src/statusBar.h
View file @
6a4bdb34
...
...
@@ -26,7 +26,7 @@
class
QString
;
class
QLabel
;
class
K
ComboBox
;
class
Q
ComboBox
;
class
QPushButton
;
namespace
KSystemLog
{
/**
...
...
@@ -52,7 +52,7 @@ private Q_SLOTS:
private:
QLabel
*
mLineCountLabel
=
nullptr
;
K
ComboBox
*
mMessageList
=
nullptr
;
Q
ComboBox
*
mMessageList
=
nullptr
;
QLabel
*
mLastModificationLabel
=
nullptr
;
QPushButton
*
mToggleHistory
=
nullptr
;
};
...
...
src/tabLogViewsWidget.cpp
View file @
6a4bdb34
...
...
@@ -158,7 +158,7 @@ void TabLogViewsWidget::moveTabLeft()
logDebug
()
<<
"Duplicate tab to the left"
;
TabLogManager
*
currentTabLogManager
=
activeTabLogManager
();
int
position
=
indexOf
(
currentTabLogManager
->
logManager
()
->
usedView
());
const
int
position
=
indexOf
(
currentTabLogManager
->
logManager
()
->
usedView
());
if
(
position
<=
0
)
{
logCritical
()
<<
"Tab Position <= 0 : "
<<
position
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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