author | mickeyl <mickeyl> | 2003-04-21 18:13:28 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-04-21 18:13:28 (UTC) |
commit | e951446d52d2a89dd919b1665b034516567384ee (patch) (unidiff) | |
tree | fba427301e9872ed1b77dea8ddbef8b0eb634d3d | |
parent | e3d9c4f3e6a45128128cc22218c4fc30bbb41f3d (diff) | |
download | opie-e951446d52d2a89dd919b1665b034516567384ee.zip opie-e951446d52d2a89dd919b1665b034516567384ee.tar.gz opie-e951446d52d2a89dd919b1665b034516567384ee.tar.bz2 |
fix irda image name
-rw-r--r-- | noncore/applets/networkapplet/networkapplet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/applets/networkapplet/networkapplet.cpp b/noncore/applets/networkapplet/networkapplet.cpp index 3019456..4e658da 100644 --- a/noncore/applets/networkapplet/networkapplet.cpp +++ b/noncore/applets/networkapplet/networkapplet.cpp | |||
@@ -126,65 +126,65 @@ void NetworkAppletControl::build() | |||
126 | name->setFixedWidth( 35 ); | 126 | name->setFixedWidth( 35 ); |
127 | h->addWidget( name ); | 127 | h->addWidget( name ); |
128 | name->show(); | 128 | name->show(); |
129 | 129 | ||
130 | IfaceIPAddress* ip = new IfaceIPAddress( this, it.current()->name() ); | 130 | IfaceIPAddress* ip = new IfaceIPAddress( this, it.current()->name() ); |
131 | h->addWidget( ip ); | 131 | h->addWidget( ip ); |
132 | ip->show(); | 132 | ip->show(); |
133 | 133 | ||
134 | IfaceUpDownButton* tb = new IfaceUpDownButton( this, it.current()->name() ); | 134 | IfaceUpDownButton* tb = new IfaceUpDownButton( this, it.current()->name() ); |
135 | tb->show(); | 135 | tb->show(); |
136 | 136 | ||
137 | h->addWidget( tb ); | 137 | h->addWidget( tb ); |
138 | 138 | ||
139 | ++it; | 139 | ++it; |
140 | } | 140 | } |
141 | } | 141 | } |
142 | 142 | ||
143 | 143 | ||
144 | NetworkAppletControl::~NetworkAppletControl() | 144 | NetworkAppletControl::~NetworkAppletControl() |
145 | { | 145 | { |
146 | } | 146 | } |
147 | 147 | ||
148 | 148 | ||
149 | QString NetworkAppletControl::guessDevice( ONetworkInterface* iface ) | 149 | QString NetworkAppletControl::guessDevice( ONetworkInterface* iface ) |
150 | { | 150 | { |
151 | if ( iface->isWireless() ) | 151 | if ( iface->isWireless() ) |
152 | return "networksettings/wlan"; | 152 | return "networksettings/wlan"; |
153 | if ( iface->isLoopback() ) | 153 | if ( iface->isLoopback() ) |
154 | return "networksettings/lo"; | 154 | return "networksettings/lo"; |
155 | if ( QString( iface->name() ).contains( "usb" ) ) | 155 | if ( QString( iface->name() ).contains( "usb" ) ) |
156 | return "networksettings/usb"; | 156 | return "networksettings/usb"; |
157 | if ( QString( iface->name() ).contains( "ir" ) ) | 157 | if ( QString( iface->name() ).contains( "ir" ) ) |
158 | return "networksettings/ir"; | 158 | return "networksettings/irda"; |
159 | 159 | ||
160 | //TODO: Insert neat symbol and check for tunnel devices | 160 | //TODO: Insert neat symbol and check for tunnel devices |
161 | 161 | ||
162 | return "networksettings/lan"; | 162 | return "networksettings/lan"; |
163 | 163 | ||
164 | } | 164 | } |
165 | 165 | ||
166 | 166 | ||
167 | void NetworkAppletControl::showEvent( QShowEvent* e ) | 167 | void NetworkAppletControl::showEvent( QShowEvent* e ) |
168 | { | 168 | { |
169 | qDebug( "showEvent" ); | 169 | qDebug( "showEvent" ); |
170 | build(); | 170 | build(); |
171 | QWidget::showEvent( e ); | 171 | QWidget::showEvent( e ); |
172 | } | 172 | } |
173 | 173 | ||
174 | 174 | ||
175 | void NetworkAppletControl::hideEvent( QHideEvent* e ) | 175 | void NetworkAppletControl::hideEvent( QHideEvent* e ) |
176 | { | 176 | { |
177 | qDebug( "hideEvent" ); | 177 | qDebug( "hideEvent" ); |
178 | QWidget::hideEvent( e ); | 178 | QWidget::hideEvent( e ); |
179 | 179 | ||
180 | delete l; | 180 | delete l; |
181 | 181 | ||
182 | // delete all child widgets from this frame | 182 | // delete all child widgets from this frame |
183 | QObjectList* list = const_cast<QObjectList*>( children() ); | 183 | QObjectList* list = const_cast<QObjectList*>( children() ); |
184 | QObjectListIt it(*list); | 184 | QObjectListIt it(*list); |
185 | QObject* obj; | 185 | QObject* obj; |
186 | while ( (obj=it.current()) ) | 186 | while ( (obj=it.current()) ) |
187 | { | 187 | { |
188 | ++it; | 188 | ++it; |
189 | delete obj; | 189 | delete obj; |
190 | } | 190 | } |