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
PIM
Akonadi Contacts
Commits
533c6ec0
Commit
533c6ec0
authored
Dec 27, 2020
by
Laurent Montel
😁
Browse files
It compiles fine without deprecated method
parent
38d96b4e
Pipeline
#45457
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
533c6ec0
...
...
@@ -64,7 +64,7 @@ find_package(Grantlee5 ${GRANTLEE_LIB_VERSION} CONFIG REQUIRED)
########### Targets ###########
add_definitions
(
-DQT_DISABLE_DEPRECATED_BEFORE=0x050
e
00
)
add_definitions
(
-DQT_DISABLE_DEPRECATED_BEFORE=0x050
f
00
)
add_definitions
(
-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054E00
)
add_definitions
(
-DQT_NO_FOREACH
)
...
...
src/contact-editor/editor/addresseditor/addresslocationwidget.cpp
View file @
533c6ec0
...
...
@@ -40,7 +40,7 @@ AddressLocationWidget::AddressLocationWidget(QWidget *parent)
mTypeCombo
=
new
SelectAddressTypeComboBox
(
this
);
mTypeCombo
->
setObjectName
(
QStringLiteral
(
"typeaddress"
));
connect
(
mTypeCombo
,
QOverload
<
const
QString
&>::
of
(
&
SelectAddressTypeComboBox
::
activa
ted
)
,
this
,
&
AddressLocationWidget
::
slotChanged
);
connect
(
mTypeCombo
,
&
SelectAddressTypeComboBox
::
textHighligh
ted
,
this
,
&
AddressLocationWidget
::
slotChanged
);
gridLayout
->
addWidget
(
mTypeCombo
,
0
,
0
,
1
,
2
);
QLabel
*
label
=
new
QLabel
(
KContacts
::
Address
::
streetLabel
(),
this
);
...
...
@@ -106,7 +106,7 @@ AddressLocationWidget::AddressLocationWidget(QWidget *parent)
mCountryCombo
->
setEditable
(
true
);
mCountryCombo
->
lineEdit
()
->
setPlaceholderText
(
i18n
(
"Add a Country"
));
mCountryCombo
->
setDuplicatesEnabled
(
false
);
connect
(
mCountryCombo
,
QOverload
<
const
QString
&>::
of
(
&
KComboBox
::
activa
ted
)
,
this
,
&
AddressLocationWidget
::
slotChanged
);
connect
(
mCountryCombo
,
&
KComboBox
::
textHighligh
ted
,
this
,
&
AddressLocationWidget
::
slotChanged
);
gridLayout
->
addWidget
(
mCountryCombo
,
6
,
1
);
mPreferredCheckBox
=
new
QCheckBox
(
i18nc
(
"street/postal"
,
"This is the preferred address"
),
this
);
...
...
Write
Preview
Supports
Markdown
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