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
Utilities
Konsole
Commits
fb12b31d
Commit
fb12b31d
authored
Oct 30, 2011
by
Jekyll Wu
Browse files
Move code around
parent
10e1782b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/EditProfileDialog.cpp
View file @
fb12b31d
...
...
@@ -74,13 +74,15 @@ EditProfileDialog::EditProfileDialog(QWidget* parent)
enableButtonApply
(
false
);
connect
(
this
,
SIGNAL
(
applyClicked
())
,
this
,
SLOT
(
save
())
);
connect
(
_delayedPreviewTimer
,
SIGNAL
(
timeout
())
,
this
,
SLOT
(
delayedPreviewActivate
())
);
_ui
=
new
Ui
::
EditProfileDialog
();
_ui
->
setupUi
(
mainWidget
());
//
-
Renable in a later KDE 4.x release when this feature works again
//
TODO:
Renable in a later KDE 4.x release when this feature works again
_ui
->
enableResizeWindowButton
->
setVisible
(
false
);
// there are various setupXYZPage() methods to load the items
// for each page and update their states to match the profile
// being edited.
...
...
@@ -303,7 +305,7 @@ void EditProfileDialog::setupGeneralPage(const Profile::Ptr info)
SLOT
(
commandChanged
(
QString
))
);
connect
(
_ui
->
environmentEditButton
,
SIGNAL
(
clicked
())
,
this
,
SLOT
(
showEnvironmentEditor
())
);
connect
(
_ui
->
showMenuBarButton
,
SIGNAL
(
toggled
(
bool
))
,
this
,
SLOT
(
showMenuBar
(
bool
))
);
connect
(
_ui
->
saveGeometryOnExitButton
,
SIGNAL
(
toggled
(
bool
))
,
this
,
...
...
@@ -343,10 +345,6 @@ void EditProfileDialog::setupTabsPage(const Profile::Ptr info)
_ui
->
remoteTabTitleEdit
->
setText
(
info
->
property
<
QString
>
(
Profile
::
RemoteTabTitleFormat
));
// tab monitoring
int
silenceSeconds
=
info
->
property
<
int
>
(
Profile
::
SilenceSeconds
);
_ui
->
silenceSecondsSpinner
->
setValue
(
silenceSeconds
);
// tab bar options
int
tabBarMode
=
info
->
property
<
int
>
(
Profile
::
TabBarMode
);
int
tabBarPosition
=
info
->
property
<
int
>
(
Profile
::
TabBarPosition
);
...
...
@@ -373,6 +371,10 @@ void EditProfileDialog::setupTabsPage(const Profile::Ptr info)
_ui
->
newTabButton
->
setChecked
(
info
->
property
<
bool
>
(
Profile
::
ShowNewAndCloseTabButtons
));
// tab monitoring
int
silenceSeconds
=
info
->
property
<
int
>
(
Profile
::
SilenceSeconds
);
_ui
->
silenceSecondsSpinner
->
setValue
(
silenceSeconds
);
// signals and slots
connect
(
_ui
->
tabBarVisibilityCombo
,
SIGNAL
(
activated
(
int
))
,
this
,
SLOT
(
tabBarVisibilityChanged
(
int
))
);
...
...
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