VirtualBox

Changeset 30196 in vbox for trunk


Ignore:
Timestamp:
Jun 15, 2010 1:22:05 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: try to use the host icon and change the button order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMLogViewer.cpp

    r30192 r30196  
    363363#ifndef Q_WS_MAC
    364364    /* 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));
    369367#endif /* !Q_WS_MAC */
    370368    connect (mButtonsNextPrev, SIGNAL (clicked (int)), this, SLOT (find (int)));
     
    420418    mSearchString->setToolTip (tr ("Enter a search string here"));
    421419
    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 "
    424426                                         "the string"));
    425 
    426     mButtonsNextPrev->setTitle (1, tr ("&Previous"));
    427     mButtonsNextPrev->setToolTip (1, tr ("Search for the previous occurrence "
    428                                          "of the string"));
    429 
    430427
    431428    mCaseSensitive->setText (tr ("C&ase Sensitive"));
     
    515512                (e->key() == Qt::Key_Enter || e->key() == Qt::Key_Return))
    516513            {
    517                 mButtonsNextPrev->animateClick (0);
     514                mButtonsNextPrev->animateClick (1);
    518515                return true;
    519516            }
     
    522519            {
    523520                if (e->QInputEvent::modifiers() == 0)
     521                    mButtonsNextPrev->animateClick (1);
     522                else if (e->QInputEvent::modifiers() == Qt::ShiftModifier)
    524523                    mButtonsNextPrev->animateClick (0);
    525                 else if (e->QInputEvent::modifiers() == Qt::ShiftModifier)
    526                     mButtonsNextPrev->animateClick (1);
    527524                return true;
    528525            }
     
    592589{
    593590    if (aButton == 0)
     591        findBack();
     592    else
    594593        findNext();
    595     else
    596         findBack();
    597 }
    598 
     594}
     595
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette