Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
bbed1cf6
Commit
bbed1cf6
authored
Nov 25, 2010
by
Christian Kandeler
Browse files
Maemo: Make it possible to filter remote process list by name.
parent
6357afcb
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt-maemo/maemoremoteprocessesdialog.cpp
View file @
bbed1cf6
...
...
@@ -60,7 +60,11 @@ MaemoRemoteProcessesDialog::MaemoRemoteProcessesDialog(const Core::SshConnection
m_ui
->
tableView
->
setSelectionBehavior
(
QAbstractItemView
::
SelectRows
);
m_proxyModel
->
setSourceModel
(
m_processList
);
m_proxyModel
->
setDynamicSortFilter
(
true
);
m_proxyModel
->
setFilterKeyColumn
(
1
);
m_ui
->
tableView
->
setModel
(
m_proxyModel
);
connect
(
m_ui
->
processFilterLineEdit
,
SIGNAL
(
textChanged
(
QString
)),
m_proxyModel
,
SLOT
(
setFilterRegExp
(
QString
)));
m_ui
->
processFilterLineEdit
->
setText
(
QLatin1String
(
"[^ ]+"
));
connect
(
m_ui
->
tableView
->
selectionModel
(),
SIGNAL
(
selectionChanged
(
QItemSelection
,
QItemSelection
)),
SLOT
(
handleSelectionChanged
()));
...
...
src/plugins/qt4projectmanager/qt-maemo/maemoremoteprocessesdialog.ui
View file @
bbed1cf6
...
...
@@ -11,15 +11,35 @@
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
Dialog
</string>
<string>
List of Remote Processes
</string>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_2"
>
<item>
<widget
class=
"QLabel"
name=
"label"
>
<property
name=
"text"
>
<string>
Processes running on remote host:
</string>
</property>
</widget>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_2"
>
<item>
<widget
class=
"QLabel"
name=
"filterLabel"
>
<property
name=
"text"
>
<string>
Filter by process name:
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QLineEdit"
name=
"processFilterLineEdit"
/>
</item>
<item>
<spacer
name=
"horizontalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
40
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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