author | wimpie <wimpie> | 2005-01-04 01:35:26 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2005-01-04 01:35:26 (UTC) |
commit | a9c188235c97e07b0eb96b13adbcdfd4bad64767 (patch) (unidiff) | |
tree | 13f6ae5c499dc0c1d1bd4b763a1973a0fa8635cf /noncore/settings/networksettings2/cable/cableedit.cpp | |
parent | 48b6cd5966ec6cc0b968edf10ba1a1ad96ef165f (diff) | |
download | opie-a9c188235c97e07b0eb96b13adbcdfd4bad64767.zip opie-a9c188235c97e07b0eb96b13adbcdfd4bad64767.tar.gz opie-a9c188235c97e07b0eb96b13adbcdfd4bad64767.tar.bz2 |
CONTROL files : changed version string
NS2 many changes and first release of OT2
Diffstat (limited to 'noncore/settings/networksettings2/cable/cableedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/cable/cableedit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/cable/cableedit.cpp b/noncore/settings/networksettings2/cable/cableedit.cpp index 6e1a13b..4e57845 100644 --- a/noncore/settings/networksettings2/cable/cableedit.cpp +++ b/noncore/settings/networksettings2/cable/cableedit.cpp | |||
@@ -14,13 +14,13 @@ static long SpeedTable[] = { | |||
14 | 3500000, 4000000, -1 | 14 | 3500000, 4000000, -1 |
15 | }; | 15 | }; |
16 | 16 | ||
17 | CableEdit::CableEdit( QWidget * Parent ) : CableGUI( Parent ) { | 17 | CableEdit::CableEdit( QWidget * Parent ) : CableGUI( Parent ) { |
18 | } | 18 | } |
19 | 19 | ||
20 | void CableEdit::showData( CableData_t & D ) { | 20 | void CableEdit::showData( CableData & D ) { |
21 | DeviceFile_LE->setText( D.Device ); | 21 | DeviceFile_LE->setText( D.Device ); |
22 | LockFile_LE->setText( D.LockFile ); | 22 | LockFile_LE->setText( D.LockFile ); |
23 | for( long * Run = SpeedTable; *Run != -1; *Run ++ ) { | 23 | for( long * Run = SpeedTable; *Run != -1; *Run ++ ) { |
24 | if( *Run == D.Speed ) { | 24 | if( *Run == D.Speed ) { |
25 | Speed_CB->setCurrentItem( | 25 | Speed_CB->setCurrentItem( |
26 | ((long)(Run)-(long)(SpeedTable))/sizeof(long) ); | 26 | ((long)(Run)-(long)(SpeedTable))/sizeof(long) ); |
@@ -37,13 +37,13 @@ void CableEdit::showData( CableData_t & D ) { | |||
37 | QString CableEdit::acceptable( void ) { | 37 | QString CableEdit::acceptable( void ) { |
38 | if( DeviceFile_LE->text().isEmpty() ) | 38 | if( DeviceFile_LE->text().isEmpty() ) |
39 | return tr("Device filename needed"); | 39 | return tr("Device filename needed"); |
40 | return QString(); | 40 | return QString(); |
41 | } | 41 | } |
42 | 42 | ||
43 | bool CableEdit::commit( CableData_t & D ) { | 43 | bool CableEdit::commit( CableData & D ) { |
44 | bool SM = 0; | 44 | bool SM = 0; |
45 | 45 | ||
46 | TXTM( D.Device, DeviceFile_LE, SM ); | 46 | TXTM( D.Device, DeviceFile_LE, SM ); |
47 | TXTM( D.LockFile, LockFile_LE, SM ); | 47 | TXTM( D.LockFile, LockFile_LE, SM ); |
48 | 48 | ||
49 | for( long * Run = SpeedTable; *Run != -1; *Run ++ ) { | 49 | for( long * Run = SpeedTable; *Run != -1; *Run ++ ) { |