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
Accessibility
KMag
Commits
d5246f9c
Commit
d5246f9c
authored
Sep 29, 2014
by
Christoph Feck
Browse files
KF5 port: kWarning -> qDebug
parent
4507e6d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
kmag.cpp
View file @
d5246f9c
...
...
@@ -22,6 +22,7 @@
***************************************************************************/
// include files for QT
#include
<QDebug>
#include
<QDir>
#include
<QPointer>
#include
<QPrintDialog>
...
...
@@ -49,7 +50,6 @@
#include
<klocale.h>
#include
<kconfig.h>
#include
<kconfiggroup.h>
#include
<kdebug.h>
#include
<kstandardaction.h>
#include
<khelpmenu.h>
#include
<kimageio.h>
...
...
@@ -480,7 +480,7 @@ void KmagApp::setZoomIndex(int index)
{
if
(
index
<
0
||
index
>=
(
int
)
zoomArray
.
size
())
{
// the index is invalid
kWarnin
g
()
<<
"Invalid index!"
;
qDebu
g
()
<<
"Invalid index!"
;
return
;
}
else
if
((
int
)
m_zoomIndex
==
index
)
{
// do nothing!
...
...
@@ -516,7 +516,7 @@ void KmagApp::setRotationIndex(int index)
{
if
(
index
<
0
||
index
>=
(
int
)
rotationArray
.
size
())
{
// the index is invalid
kWarnin
g
()
<<
"Invalid index!"
;
qDebu
g
()
<<
"Invalid index!"
;
return
;
}
else
if
((
int
)
m_rotationIndex
==
index
)
{
// do nothing!
...
...
@@ -536,7 +536,7 @@ void KmagApp::setFPSIndex(int index)
{
if
(
index
<
0
||
index
>=
(
int
)
fpsArray
.
size
())
{
// the index is invalid
kWarnin
g
()
<<
"Invalid index!"
;
qDebu
g
()
<<
"Invalid index!"
;
return
;
}
else
if
((
int
)
m_fpsIndex
==
index
)
{
// do nothing!
...
...
@@ -556,7 +556,7 @@ void KmagApp::setColorIndex(int index)
{
if
(
index
<
0
||
index
>=
(
int
)
colorArray
.
size
())
{
// the index is invalid
kWarnin
g
()
<<
"Invalid index!"
;
qDebu
g
()
<<
"Invalid index!"
;
return
;
}
else
if
((
int
)
m_colorIndex
==
index
)
{
// do nothing!
...
...
kmagzoomview.cpp
View file @
d5246f9c
...
...
@@ -46,7 +46,6 @@
// include files for KDE
#include
<kapplication.h>
#include
<kcursor.h>
#include
<kdebug.h>
#include
<klocale.h>
#ifdef QAccessibilityClient_FOUND
#include
<qaccessibilityclient/accessibleobject.h>
...
...
@@ -402,7 +401,6 @@ void KMagZoomView::paintMouseCursor(QPaintDevice *dev, const QPoint &mousePos)
QWidget
*
dummy
=
KApplication
::
topLevelAt
(
QCursor
::
pos
());
if
(
!
dummy
)
break
;
kDebug
()
<<
">"
<<
dummy
->
objectName
()
<<
":"
<<
dummy
->
cursor
().
shape
()
<<
"-"
;
switch
(
this
->
cursor
().
shape
())
{
case
Qt
::
ArrowCursor
:
{
...
...
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