Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
960e00ed
Commit
960e00ed
authored
Mar 30, 2010
by
Friedemann Kleint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Symbian/Linux: Add "Update" button for serial devices.
Visible on Linux/Mac only.
parent
cf6bf872
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/plugins/qt4projectmanager/qt-s60/s60devicerunconfigurationwidget.cpp
...projectmanager/qt-s60/s60devicerunconfigurationwidget.cpp
+14
-0
No files found.
src/plugins/qt4projectmanager/qt-s60/s60devicerunconfigurationwidget.cpp
View file @
960e00ed
...
...
@@ -58,6 +58,12 @@
Q_DECLARE_METATYPE
(
SymbianUtils
::
SymbianDevice
)
#ifdef Q_OS_WIN
enum
{
wantUpdateSerialDevicesButton
=
0
};
#else
enum
{
wantUpdateSerialDevicesButton
=
1
};
#endif
namespace
Qt4ProjectManager
{
namespace
Internal
{
...
...
@@ -107,6 +113,14 @@ S60DeviceRunConfigurationWidget::S60DeviceRunConfigurationWidget(
QHBoxLayout
*
serialPortHBoxLayout
=
new
QHBoxLayout
;
serialPortHBoxLayout
->
addWidget
(
m_serialPortsCombo
);
serialPortHBoxLayout
->
addSpacerItem
(
new
QSpacerItem
(
0
,
0
,
QSizePolicy
::
Expanding
,
QSizePolicy
::
Ignored
));
// Update device list: on Linux only.
if
(
wantUpdateSerialDevicesButton
)
{
QToolButton
*
updateSerialDevicesButton
(
new
QToolButton
);
updateSerialDevicesButton
->
setIcon
(
qApp
->
style
()
->
standardIcon
(
QStyle
::
SP_BrowserReload
));
connect
(
updateSerialDevicesButton
,
SIGNAL
(
clicked
()),
SymbianUtils
::
SymbianDeviceManager
::
instance
(),
SLOT
(
update
()));
serialPortHBoxLayout
->
addWidget
(
updateSerialDevicesButton
);
}
formLayout
->
addRow
(
tr
(
"Device on Serial Port:"
),
serialPortHBoxLayout
);
...
...
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