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
Network
Konversation
Commits
54959741
Commit
54959741
authored
Feb 13, 2021
by
Peter Simonsson
Browse files
Move nickname editor into ui file
parent
aaa16c69
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/identitydialog.cpp
View file @
54959741
...
...
@@ -47,14 +47,6 @@ namespace Konversation
mainLayout
->
addWidget
(
w
);
mainLayout
->
addWidget
(
buttonBox
);
QGroupBox
*
nickGroupBox
=
new
QGroupBox
(
i18n
(
"Nickname"
));
verticalLayout
->
insertWidget
(
1
,
nickGroupBox
);
QVBoxLayout
*
nickGroupBoxLayout
=
new
QVBoxLayout
(
nickGroupBox
);
nickGroupBoxLayout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
m_nicknameLBox
=
new
KEditListWidget
(
nickGroupBox
);
nickGroupBoxLayout
->
addWidget
(
m_nicknameLBox
);
m_nicknameLBox
->
setWhatsThis
(
i18n
(
"This is your list of nicknames. A nickname is the name that other users will "
"know you by. You may use any name you desire. The first character must be a letter.
\n\n
"
"Since nicknames must be unique across an entire IRC network, your desired name may be "
...
...
src/identitydialog.h
View file @
54959741
...
...
@@ -54,8 +54,6 @@ namespace Konversation
IdentityList
m_identityList
;
IdentityPtr
m_currentIdentity
;
KEditListWidget
*
m_nicknameLBox
;
KMessageWidget
*
m_additionalAuthInfo
;
Q_DISABLE_COPY
(
IdentityDialog
)
...
...
src/identitydialog.ui
View file @
54959741
...
...
@@ -6,12 +6,21 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
331
</width>
<height>
344
</height>
<width>
406
</width>
<height>
640
</height>
</rect>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_2"
>
<property
name=
"margin"
>
<property
name=
"leftMargin"
>
<number>
0
</number>
</property>
<property
name=
"topMargin"
>
<number>
0
</number>
</property>
<property
name=
"rightMargin"
>
<number>
0
</number>
</property>
<property
name=
"bottomMargin"
>
<number>
0
</number>
</property>
<item>
...
...
@@ -203,6 +212,22 @@
</item>
</layout>
</item>
<item>
<widget
class=
"QGroupBox"
name=
"nickGroupBox"
>
<property
name=
"title"
>
<string>
Nickname
</string>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_3"
>
<item>
<widget
class=
"KEditListWidget"
name=
"m_nicknameLBox"
>
<property
name=
"checkAtEntering"
>
<bool>
true
</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget
class=
"QGroupBox"
name=
"autoIdentifyGroup"
>
<property
name=
"title"
>
...
...
@@ -683,6 +708,11 @@
<extends>
QSpinBox
</extends>
<header>
kpluralhandlingspinbox.h
</header>
</customwidget>
<customwidget>
<class>
KEditListWidget
</class>
<extends>
QWidget
</extends>
<header>
keditlistwidget.h
</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>
m_identityCBox
</tabstop>
...
...
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