From bf65cf9aeb5dddcc4b0c0d702afd748d97e95d5e Mon Sep 17 00:00:00 2001 From: wimpie Date: Wed, 05 Jan 2005 02:42:18 +0000 Subject: Slightly better layout for OTMainGUI. Fixed segfault bug in disconnectNotify call (signal string could be NULL) --- (limited to 'noncore/settings/networksettings2/opietooth2') diff --git a/noncore/settings/networksettings2/opietooth2/OTGateway.cpp b/noncore/settings/networksettings2/opietooth2/OTGateway.cpp index 2d13ce9..6531cf6 100644 --- a/noncore/settings/networksettings2/opietooth2/OTGateway.cpp +++ b/noncore/settings/networksettings2/opietooth2/OTGateway.cpp @@ -168,13 +168,13 @@ void OTGateway::SLOT_ShowError( const QString & S ) { } void OTGateway::connectNotify( const char * S ) { - if( strcmp( S, "error(const QString&)" ) == 0 ) { + if( S && strcmp( S, "error(const QString&)" ) == 0 ) { ErrorConnectCount ++; } } void OTGateway::disconnectNotify( const char * S ) { - if( strcmp( S, "error(const QString&)" ) == 0 ) { + if( S && strcmp( S, "error(const QString&)" ) == 0 ) { ErrorConnectCount --; } } diff --git a/noncore/settings/networksettings2/opietooth2/OTMainGUI.ui b/noncore/settings/networksettings2/opietooth2/OTMainGUI.ui index 6005504..d9038ae 100644 --- a/noncore/settings/networksettings2/opietooth2/OTMainGUI.ui +++ b/noncore/settings/networksettings2/opietooth2/OTMainGUI.ui @@ -11,8 +11,8 @@ 0 0 - 228 - 347 + 257 + 296 @@ -28,7 +28,7 @@ margin - 5 + 3 spacing @@ -104,6 +104,27 @@ + + + name + Spacer20_3 + + + orientation + Vertical + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + QLayoutWidget @@ -237,81 +258,32 @@ - - QLayoutWidget - + + name - Layout5 + Spacer20_4 - - - margin - 0 - - - spacing - 6 - - - - name - Spacer4 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - - - QLabel - - name - TextLabel5 - - - sizePolicy - - 0 - 1 - - - - text - Use device : - - - - QComboBox - - name - DeviceList_CB - - - sizePolicy - - 7 - 0 - - - - - + + orientation + Vertical + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + QLayoutWidget name - Layout4 + Layout10 @@ -344,29 +316,99 @@ - QLabel + QLayoutWidget name - TextLabel1_2 - - - sizePolicy - - 7 - 1 - - - - text - Select to scan the bluetooth network for reachable devices using the selected local device - - - alignment - WordBreak|AlignVCenter|AlignLeft - - - wordwrap - + Layout9 + + + + margin + 0 + + + spacing + 6 + + + QComboBox + + name + DeviceList_CB + + + sizePolicy + + 7 + 0 + + + + + + name + Spacer16 + + + orientation + Horizontal + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + + + QLabel + + name + TextLabel1_2 + + + sizePolicy + + 7 + 1 + + + + text + Select to scan the bluetooth network for reachable devices using the selected local device + + + alignment + WordBreak|AlignVCenter|AlignLeft + + + wordwrap + + + + QLabel + + name + TextLabel5 + + + sizePolicy + + 0 + 1 + + + + text + Use device : + + + @@ -440,6 +482,27 @@ + + + name + Spacer20_5 + + + orientation + Vertical + + + sizeType + Expanding + + + sizeHint + + 20 + 20 + + + QLayoutWidget @@ -550,27 +613,6 @@ Trace Bluetooth - - - name - Spacer4_2 - - - orientation - Horizontal - - - sizeType - Expanding - - - sizeHint - - 20 - 20 - - - QCheckBox -- cgit v0.9.0.2