- Timestamp:
- Jun 15, 2010 1:22:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMLogViewer.cpp
r30192 r30196 363 363 #ifndef Q_WS_MAC 364 364 /* No icons on the Mac */ 365 mButtonsNextPrev->setIcon(0, UIIconPool::iconSet(":/list_movedown_16px.png", 366 ":/list_movedown_disabled_16px.png")); 367 mButtonsNextPrev->setIcon(1, UIIconPool::iconSet(":/list_moveup_16px.png", 368 ":/list_moveup_disabled_16px.png")); 365 mButtonsNextPrev->setIcon(0, UIIconPool::defaultIcon(UIIconPool::ArrowBackIcon, this)); 366 mButtonsNextPrev->setIcon(1, UIIconPool::defaultIcon(UIIconPool::ArrowForwardIcon, this)); 369 367 #endif /* !Q_WS_MAC */ 370 368 connect (mButtonsNextPrev, SIGNAL (clicked (int)), this, SLOT (find (int))); … … 420 418 mSearchString->setToolTip (tr ("Enter a search string here")); 421 419 422 mButtonsNextPrev->setTitle (0, tr ("&Next")); 423 mButtonsNextPrev->setToolTip (0, tr ("Search for the next occurrence of " 420 mButtonsNextPrev->setTitle (0, tr ("&Previous")); 421 mButtonsNextPrev->setToolTip (0, tr ("Search for the previous occurrence " 422 "of the string")); 423 424 mButtonsNextPrev->setTitle (1, tr ("&Next")); 425 mButtonsNextPrev->setToolTip (1, tr ("Search for the next occurrence of " 424 426 "the string")); 425 426 mButtonsNextPrev->setTitle (1, tr ("&Previous"));427 mButtonsNextPrev->setToolTip (1, tr ("Search for the previous occurrence "428 "of the string"));429 430 427 431 428 mCaseSensitive->setText (tr ("C&ase Sensitive")); … … 515 512 (e->key() == Qt::Key_Enter || e->key() == Qt::Key_Return)) 516 513 { 517 mButtonsNextPrev->animateClick ( 0);514 mButtonsNextPrev->animateClick (1); 518 515 return true; 519 516 } … … 522 519 { 523 520 if (e->QInputEvent::modifiers() == 0) 521 mButtonsNextPrev->animateClick (1); 522 else if (e->QInputEvent::modifiers() == Qt::ShiftModifier) 524 523 mButtonsNextPrev->animateClick (0); 525 else if (e->QInputEvent::modifiers() == Qt::ShiftModifier)526 mButtonsNextPrev->animateClick (1);527 524 return true; 528 525 } … … 592 589 { 593 590 if (aButton == 0) 591 findBack(); 592 else 594 593 findNext(); 595 else 596 findBack(); 597 } 598 594 } 595
Note:
See TracChangeset
for help on using the changeset viewer.