summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/cable/cableedit.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/cable/cableedit.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/networksettings2/cable/cableedit.cpp4
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
17CableEdit::CableEdit( QWidget * Parent ) : CableGUI( Parent ) { 17CableEdit::CableEdit( QWidget * Parent ) : CableGUI( Parent ) {
18} 18}
19 19
20void CableEdit::showData( CableData_t & D ) { 20void 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 ) {
37QString CableEdit::acceptable( void ) { 37QString 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
43bool CableEdit::commit( CableData_t & D ) { 43bool 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 ++ ) {