Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim
Commits
00e3d513
Commit
00e3d513
authored
Aug 14, 2015
by
Volker Krause
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly namespace this dialog, and don't compile it twice.
parent
51480c31
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
6 deletions
+9
-6
accountwizard/ldap.cpp
accountwizard/ldap.cpp
+1
-1
libkdepim/CMakeLists.txt
libkdepim/CMakeLists.txt
+0
-1
libkdepim/ldap/addhostdialog.cpp
libkdepim/ldap/addhostdialog.cpp
+2
-0
libkdepim/ldap/addhostdialog.h
libkdepim/ldap/addhostdialog.h
+4
-2
libkdepim/ldap/kcmldap.cpp
libkdepim/ldap/kcmldap.cpp
+2
-2
No files found.
accountwizard/ldap.cpp
View file @
00e3d513
...
...
@@ -210,7 +210,7 @@ void Ldap::edit()
KLDAP
::
LdapClientSearchConfig
clientSearchConfig
;
KConfigGroup
group
=
clientSearchConfig
.
config
()
->
group
(
QStringLiteral
(
"LDAP"
));
clientSearchConfig
.
readConfig
(
server
,
group
,
m_entry
,
true
);
AddHostDialog
dlg
(
&
server
,
0
);
KLDAP
::
AddHostDialog
dlg
(
&
server
,
0
);
if
(
dlg
.
exec
()
&&
!
server
.
host
().
isEmpty
())
{
//krazy:exclude=crashy
clientSearchConfig
.
writeConfig
(
server
,
group
,
m_entry
,
true
);
...
...
libkdepim/CMakeLists.txt
View file @
00e3d513
...
...
@@ -197,7 +197,6 @@ endif()
set
(
kcm_ldap_SRCS
ldap/addhostdialog.cpp
ldap/kcmldap.cpp
)
...
...
libkdepim/ldap/addhostdialog.cpp
View file @
00e3d513
...
...
@@ -32,6 +32,8 @@
#include <QPushButton>
#include <QVBoxLayout>
using
namespace
KLDAP
;
AddHostDialog
::
AddHostDialog
(
KLDAP
::
LdapServer
*
server
,
QWidget
*
parent
)
:
QDialog
(
parent
)
{
...
...
libkdepim/ldap/addhostdialog.h
View file @
00e3d513
...
...
@@ -25,13 +25,13 @@
#include "libkdepim/kdepim_export.h"
#include <qdialog.h>
class
QPushButton
;
namespace
KLDAP
{
class
LdapConfigWidget
;
class
LdapServer
;
}
class
QPushButton
;
class
KDEPIM_EXPORT
AddHostDialog
:
public
QDialog
{
Q_OBJECT
...
...
@@ -55,4 +55,6 @@ private:
QPushButton
*
mOkButton
;
};
}
#endif // ADDHOSTDIALOG_H
libkdepim/ldap/kcmldap.cpp
View file @
00e3d513
...
...
@@ -140,7 +140,7 @@ void KCMLdap::slotItemClicked(QListWidgetItem *item)
void
KCMLdap
::
slotAddHost
()
{
KLDAP
::
LdapServer
server
;
AddHostDialog
dlg
(
&
server
,
dialogParent
());
KLDAP
::
AddHostDialog
dlg
(
&
server
,
dialogParent
());
if
(
dlg
.
exec
()
&&
!
server
.
host
().
isEmpty
())
{
//krazy:exclude=crashy
new
LDAPItem
(
mHostListView
,
server
);
...
...
@@ -157,7 +157,7 @@ void KCMLdap::slotEditHost()
}
KLDAP
::
LdapServer
server
=
item
->
server
();
AddHostDialog
dlg
(
&
server
,
dialogParent
());
KLDAP
::
AddHostDialog
dlg
(
&
server
,
dialogParent
());
dlg
.
setWindowTitle
(
i18n
(
"Edit Host"
));
if
(
dlg
.
exec
()
&&
!
server
.
host
().
isEmpty
())
{
//krazy:exclude=crashy
...
...
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