Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KOrganizer
Commits
2b5436ca
Commit
2b5436ca
authored
May 03, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated method
parent
18ca7966
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
CMakeLists.txt
CMakeLists.txt
+1
-1
src/autotests/koeventpopupmenutest.cpp
src/autotests/koeventpopupmenutest.cpp
+8
-8
src/kcmdesignerfields.cpp
src/kcmdesignerfields.cpp
+1
-1
src/views/collectionview/autotests/modeltest.cpp
src/views/collectionview/autotests/modeltest.cpp
+7
-7
No files found.
CMakeLists.txt
View file @
2b5436ca
...
...
@@ -129,7 +129,7 @@ configure_file(korganizer-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/korganizer
add_definitions
(
-DQT_NO_CAST_FROM_ASCII
)
add_definitions
(
-DQT_NO_CAST_TO_ASCII
)
add_definitions
(
-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
)
add_definitions
(
-DQT_DISABLE_DEPRECATED_BEFORE=0x060000
)
add_subdirectory
(
src
)
add_subdirectory
(
korgac
)
...
...
src/autotests/koeventpopupmenutest.cpp
View file @
2b5436ca
...
...
@@ -100,9 +100,9 @@ void KoEventPopupMenuTest::createEventFromTodo()
menu
.
showIncidencePopup
(
item
,
QDate
());
QAction
*
createevent
=
menu
.
findChild
<
QAction
*>
(
QStringLiteral
(
"createevent"
));
createevent
->
trigger
();
IncidenceEditorNG
::
IncidenceDialog
*
dlg
=
qF
indChild
<
IncidenceEditorNG
::
IncidenceDialog
*>
(
&
menu
);
IncidenceEditorNG
::
IncidenceDialog
*
dlg
=
menu
.
f
indChild
<
IncidenceEditorNG
::
IncidenceDialog
*>
();
QVERIFY
(
dlg
);
IncidenceEditorNG
::
IncidenceEditor
*
editor
=
qF
indChild
<
IncidenceEditorNG
::
IncidenceEditor
*>
(
&
menu
);
IncidenceEditorNG
::
IncidenceEditor
*
editor
=
menu
.
f
indChild
<
IncidenceEditorNG
::
IncidenceEditor
*>
();
QVERIFY
(
editor
);
KCalCore
::
Event
::
Ptr
event
(
editor
->
incidence
<
KCalCore
::
Event
>
());
QVERIFY
(
event
->
uid
()
!=
todo
->
uid
());
...
...
@@ -134,9 +134,9 @@ void KoEventPopupMenuTest::createTodoFromEvent()
menu
.
showIncidencePopup
(
item
,
QDate
());
QAction
*
createtodo
=
menu
.
findChild
<
QAction
*>
(
QStringLiteral
(
"createtodo"
));
createtodo
->
trigger
();
IncidenceEditorNG
::
IncidenceDialog
*
dlg
=
qF
indChild
<
IncidenceEditorNG
::
IncidenceDialog
*>
(
&
menu
);
IncidenceEditorNG
::
IncidenceDialog
*
dlg
=
menu
.
f
indChild
<
IncidenceEditorNG
::
IncidenceDialog
*>
();
QVERIFY
(
dlg
);
IncidenceEditorNG
::
IncidenceEditor
*
editor
=
qF
indChild
<
IncidenceEditorNG
::
IncidenceEditor
*>
(
&
menu
);
IncidenceEditorNG
::
IncidenceEditor
*
editor
=
menu
.
f
indChild
<
IncidenceEditorNG
::
IncidenceEditor
*>
();
QVERIFY
(
editor
);
KCalCore
::
Todo
::
Ptr
todo
(
editor
->
incidence
<
KCalCore
::
Todo
>
());
QVERIFY
(
todo
->
uid
()
!=
event
->
uid
());
...
...
@@ -169,10 +169,10 @@ void KoEventPopupMenuTest::createNoteFromEvent()
menu
.
setCalendar
(
calendar
);
menu
.
showIncidencePopup
(
item
,
QDate
());
QAction
*
createnote
=
menu
.
findChild
<
QAction
*>
(
QStringLiteral
(
"createnote"
));
NoteEditDialog
*
noteedit
=
qF
indChild
<
NoteEditDialog
*>
(
&
menu
);
NoteEditDialog
*
noteedit
=
menu
.
f
indChild
<
NoteEditDialog
*>
();
QVERIFY
(
!
noteedit
);
createnote
->
trigger
();
noteedit
=
qF
indChild
<
NoteEditDialog
*>
(
&
menu
);
noteedit
=
menu
.
f
indChild
<
NoteEditDialog
*>
();
QVERIFY
(
noteedit
);
Akonadi
::
NoteUtils
::
NoteMessageWrapper
note
(
noteedit
->
note
());
QCOMPARE
(
note
.
title
(),
summary
);
...
...
@@ -208,10 +208,10 @@ void KoEventPopupMenuTest::createNoteFromTodo()
menu
.
showIncidencePopup
(
item
,
QDate
());
QAction
*
createnote
=
menu
.
findChild
<
QAction
*>
(
QStringLiteral
(
"createnote"
));
NoteEditDialog
*
noteedit
=
qF
indChild
<
NoteEditDialog
*>
(
&
menu
);
NoteEditDialog
*
noteedit
=
menu
.
f
indChild
<
NoteEditDialog
*>
();
QVERIFY
(
!
noteedit
);
createnote
->
trigger
();
noteedit
=
qF
indChild
<
NoteEditDialog
*>
(
&
menu
);
noteedit
=
menu
.
f
indChild
<
NoteEditDialog
*>
();
QVERIFY
(
noteedit
);
Akonadi
::
NoteUtils
::
NoteMessageWrapper
note
(
noteedit
->
note
());
QCOMPARE
(
note
.
title
(),
summary
);
...
...
src/kcmdesignerfields.cpp
View file @
2b5436ca
...
...
@@ -310,7 +310,7 @@ void KCMDesignerFields::initGUI()
mPageView
->
setHeaderLabel
(
i18n
(
"Available Pages"
));
mPageView
->
setRootIsDecorated
(
true
);
mPageView
->
setAllColumnsShowFocus
(
true
);
mPageView
->
header
()
->
setResizeMode
(
QHeaderView
::
Stretch
);
mPageView
->
header
()
->
set
Section
ResizeMode
(
QHeaderView
::
Stretch
);
hbox
->
addWidget
(
mPageView
);
QGroupBox
*
box
=
new
QGroupBox
(
i18n
(
"Preview of Selected Page"
),
this
);
...
...
src/views/collectionview/autotests/modeltest.cpp
View file @
2b5436ca
...
...
@@ -435,27 +435,27 @@ void ModelTest::data()
// General Purpose roles that should return a QString
QVariant
variant
=
model
->
data
(
model
->
index
(
0
,
0
),
Qt
::
ToolTipRole
);
if
(
variant
.
isValid
())
{
Q_ASSERT
(
qV
ariant
C
anConvert
<
QString
>
(
variant
));
Q_ASSERT
(
v
ariant
.
c
anConvert
<
QString
>
(
));
}
variant
=
model
->
data
(
model
->
index
(
0
,
0
),
Qt
::
StatusTipRole
);
if
(
variant
.
isValid
())
{
Q_ASSERT
(
qV
ariant
C
anConvert
<
QString
>
(
variant
));
Q_ASSERT
(
v
ariant
.
c
anConvert
<
QString
>
(
));
}
variant
=
model
->
data
(
model
->
index
(
0
,
0
),
Qt
::
WhatsThisRole
);
if
(
variant
.
isValid
())
{
Q_ASSERT
(
qV
ariant
C
anConvert
<
QString
>
(
variant
));
Q_ASSERT
(
v
ariant
.
c
anConvert
<
QString
>
(
));
}
// General Purpose roles that should return a QSize
variant
=
model
->
data
(
model
->
index
(
0
,
0
),
Qt
::
SizeHintRole
);
if
(
variant
.
isValid
())
{
Q_ASSERT
(
qV
ariant
C
anConvert
<
QSize
>
(
variant
));
Q_ASSERT
(
v
ariant
.
c
anConvert
<
QSize
>
(
));
}
// General Purpose roles that should return a QFont
QVariant
fontVariant
=
model
->
data
(
model
->
index
(
0
,
0
),
Qt
::
FontRole
);
if
(
fontVariant
.
isValid
())
{
Q_ASSERT
(
qV
ariant
C
anConvert
<
QFont
>
(
fontVariant
));
Q_ASSERT
(
v
ariant
.
c
anConvert
<
QFont
>
(
));
}
// Check that the alignment is one we know about
...
...
@@ -469,12 +469,12 @@ void ModelTest::data()
// General Purpose roles that should return a QColor
QVariant
colorVariant
=
model
->
data
(
model
->
index
(
0
,
0
),
Qt
::
BackgroundColorRole
);
if
(
colorVariant
.
isValid
())
{
Q_ASSERT
(
q
Variant
C
anConvert
<
QColor
>
(
colorVariant
));
Q_ASSERT
(
color
Variant
.
c
anConvert
<
QColor
>
(
));
}
colorVariant
=
model
->
data
(
model
->
index
(
0
,
0
),
Qt
::
TextColorRole
);
if
(
colorVariant
.
isValid
())
{
Q_ASSERT
(
q
Variant
C
anConvert
<
QColor
>
(
colorVariant
));
Q_ASSERT
(
color
Variant
.
c
anConvert
<
QColor
>
(
));
}
// Check that the "check state" is one we know about.
...
...
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