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
SDK
Cervisia
Commits
f5ce0bf4
Commit
f5ce0bf4
authored
Sep 27, 2001
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When we doubleclick we change setting
svn path=/trunk/kdesdk/cervisia/; revision=115633
parent
512b46ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
repositorydlg.cpp
repositorydlg.cpp
+9
-0
repositorydlg.h
repositorydlg.h
+1
-0
No files found.
repositorydlg.cpp
View file @
f5ce0bf4
...
...
@@ -61,6 +61,9 @@ RepositoryDialog::RepositoryDialog(QWidget *parent, const char *name)
connect
(
repolist
,
SIGNAL
(
selectionChanged
()),
this
,
SLOT
(
slotSelectionChanged
()));
connect
(
repolist
,
SIGNAL
(
doubleClicked
(
QListViewItem
*
)),
this
,
SLOT
(
slotDoubleClicked
(
QListViewItem
*
)));
KButtonBox
*
actionbox
=
new
KButtonBox
(
this
,
KButtonBox
::
Vertical
);
actionbox
->
addStretch
();
QPushButton
*
addbutton
=
actionbox
->
addButton
(
i18n
(
"&Add..."
));
...
...
@@ -117,6 +120,12 @@ RepositoryDialog::RepositoryDialog(QWidget *parent, const char *name)
slotSelectionChanged
();
}
void
RepositoryDialog
::
slotDoubleClicked
(
QListViewItem
*
item
)
{
if
(
item
)
slotSettingsClicked
();
}
void
RepositoryDialog
::
slotSelectionChanged
()
{
bool
state
=
(
repolist
->
currentItem
()
!=
0
);
...
...
repositorydlg.h
View file @
f5ce0bf4
...
...
@@ -46,6 +46,7 @@ private slots:
void
slotLoginClicked
();
void
slotLogoutClicked
();
void
slotSelectionChanged
();
void
slotDoubleClicked
(
QListViewItem
*
);
private:
struct
Options
{
QSize
size
;
...
...
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