summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/ppp/conwindow.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/ppp/conwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/ppp/conwindow.cpp110
1 files changed, 55 insertions, 55 deletions
diff --git a/noncore/settings/networksettings/ppp/conwindow.cpp b/noncore/settings/networksettings/ppp/conwindow.cpp
index ad89005..20d705d 100644
--- a/noncore/settings/networksettings/ppp/conwindow.cpp
+++ b/noncore/settings/networksettings/ppp/conwindow.cpp
@@ -262,61 +262,61 @@ void ConWindow::stopClock() {
262 262
263 263
264void ConWindow::timeclick() { 264void ConWindow::timeclick() {
265 QString tooltip = i18n("Connection: %1\n" 265// QString tooltip = i18n("Connection: %1\n"
266 "Connected at: %2\n" 266 // "Connected at: %2\n"
267 "Time connected: %3") 267 // "Time connected: %3")
268 .arg(PPPData::data()->accname()).arg(info2->text()) 268 // .arg(PPPData::data()->accname()).arg(info2->text())
269 .arg(time_string2); 269 // .arg(time_string2);
270 270
271 if(accountingEnabled) 271// if(accountingEnabled)
272 tooltip += i18n("\nSession Bill: %1\nTotal Bill: %2") 272// tooltip += i18n("\nSession Bill: %1\nTotal Bill: %2")
273 .arg(session_bill->text()).arg(total_bill->text()); 273 // .arg(session_bill->text()).arg(total_bill->text());
274 // volume accounting 274// // volume accounting
275 if(volumeAccountingEnabled) { 275// if(volumeAccountingEnabled) {
276 276
277 volinfo->setEnabled(TRUE); 277// volinfo->setEnabled(TRUE);
278 int bytes = PPPData::data()->totalBytes(); 278// int bytes = PPPData::data()->totalBytes();
279 volinfo->setText(prettyPrintVolume(bytes)); 279// volinfo->setText(prettyPrintVolume(bytes));
280 } 280// }
281 281
282 seconds++; 282// seconds++;
283 283
284 if(seconds >= 60 ) { 284// if(seconds >= 60 ) {
285 minutes ++; 285// minutes ++;
286 seconds = 0; 286// seconds = 0;
287 } 287// }
288 288
289 if (minutes >= 60){ 289// if (minutes >= 60){
290 minutes = 0; 290// minutes = 0;
291 hours ++; 291// hours ++;
292 } 292// }
293 293
294 if( hours >= 24){ 294// if( hours >= 24){
295 days ++; 295// days ++;
296 hours = 0; 296// hours = 0;
297 } 297// }
298 298
299 time_string.sprintf("%02d:%02d",hours,minutes); 299// time_string.sprintf("%02d:%02d",hours,minutes);
300 time_string2 = ""; 300// time_string2 = "";
301 if (days) 301// if (days)
302 time_string2.sprintf("%d d %02d:%02d:%02d", 302// time_string2.sprintf("%d d %02d:%02d:%02d",
303 days,hours,minutes,seconds); 303 // days,hours,minutes,seconds);
304 304
305 else 305// else
306 time_string2.sprintf("%02d:%02d:%02d",hours,minutes,seconds); 306// time_string2.sprintf("%02d:%02d:%02d",hours,minutes,seconds);
307 307
308 caption_string = PPPData::data()->accname(); 308// caption_string = PPPData::data()->accname();
309 caption_string += " "; 309// caption_string += " ";
310 caption_string += time_string; 310// caption_string += time_string;
311 311
312 312
313 timelabel2->setText(time_string2); 313// timelabel2->setText(time_string2);
314 314
315 if(PPPData::data()->get_show_clock_on_caption() && (seconds == 1)){ 315// if(PPPData::data()->get_show_clock_on_caption() && (seconds == 1)){
316 // we update the Caption only once per minute not every second 316// // we update the Caption only once per minute not every second
317 // otherwise I get a flickering icon 317// // otherwise I get a flickering icon
318 this->setCaption(caption_string); 318// this->setCaption(caption_string);
319 } 319// }
320 320
321// QToolTip::add(DockWidget::dock_widget, tooltip); 321// QToolTip::add(DockWidget::dock_widget, tooltip);
322} 322}