Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/widgets/qdialogbuttonbox.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    104104
    105105    Currently the buttons are laid out in the following way if the button box is horizontal:
    106     \table 100%
     106    \table
    107107    \row \o \inlineimage buttonbox-gnomelayout-horizontal.png GnomeLayout Horizontal
    108108         \o Button box laid out in horizontal GnomeLayout
     
    117117    The buttons are laid out the following way if the button box is vertical:
    118118
    119     \table 100%
     119    \table
     120    \row \o GnomeLayout
     121         \o KdeLayout
     122         \o MacLayout
     123         \o WinLayout
    120124    \row \o \inlineimage buttonbox-gnomelayout-vertical.png GnomeLayout Vertical
    121          \o Button box laid out in vertical GnomeLayout
    122     \row \o \inlineimage buttonbox-kdelayout-vertical.png KdeLayout Vertical
    123          \o Button box laid out in vertical KdeLayout
    124     \row \o \inlineimage buttonbox-maclayout-vertical.png MacLayout Vertical
    125          \o Button box laid out in vertical MacLayout
    126     \row \o \inlineimage buttonbox-winlayout-vertical.png WinLayout Vertical
    127          \o Button box laid out in vertical WinLayout
     125         \o \inlineimage buttonbox-kdelayout-vertical.png KdeLayout Vertical
     126         \o \inlineimage buttonbox-maclayout-vertical.png MacLayout Vertical
     127         \o \inlineimage buttonbox-winlayout-vertical.png WinLayout Vertical
    128128    \endtable
    129129
    130130    Additionally, button boxes that contain only buttons with ActionRole or
    131     HelpRole can be considered modeless and have an alternate look on the mac:
    132 
    133     \table 100%
    134     \row \o \inlineimage buttonbox-mac-modeless-horizontal.png Screenshot of modeless horizontal MacLayout
    135          \o modeless horizontal MacLayout
    136     \row \o \inlineimage buttonbox-mac-modeless-vertical.png Screenshot of modeless vertical MacLayout
    137          \o modeless vertical MacLayout
     131    HelpRole can be considered modeless and have an alternate look on Mac OS X:
     132
     133    \table
     134    \row \o modeless horizontal MacLayout
     135         \o \inlineimage buttonbox-mac-modeless-horizontal.png Screenshot of modeless horizontal MacLayout
    138136    \endtable
    139137
     
    261259};
    262260
     261
    263262class QDialogButtonEnabledProxy : public QObject
    264263{
     
    284283    QAction *target;
    285284};
    286 
     285#endif
    287286
    288287class QDialogButtonBoxPrivate : public QWidgetPrivate
     
    317316    void retranslateStrings();
    318317    const char *standardButtonText(QDialogButtonBox::StandardButton sbutton) const;
    319 #ifdef QT_SOFTKEYS_ENABLED
     318#if
    320319    QAction *createSoftKey(QAbstractButton *button, QDialogButtonBox::ButtonRole role);
    321320#endif
     
    574573    QObject::connect(button, SIGNAL(destroyed()), q, SLOT(_q_handleButtonDestroyed()));
    575574    buttonLists[role].append(button);
    576 #ifdef QT_SOFTKEYS_ENABLED
     575#if
    577576    QAction *action = createSoftKey(button, role);
    578577    softKeyActions.insert(button, action);
     
    583582}
    584583
    585 #ifdef QT_SOFTKEYS_ENABLED
     584#if
    586585QAction* QDialogButtonBoxPrivate::createSoftKey(QAbstractButton *button, QDialogButtonBox::ButtonRole role)
    587586{
     
    721720            QPushButton *button = it.key();
    722721            button->setText(QDialogButtonBox::tr(buttonText));
    723 #ifdef QT_SOFTKEYS_ENABLED
     722#if
    724723            QAction *action = softKeyActions.value(button, 0);
    725724            if (action)
     
    1000999        }
    10011000    }
    1002 #ifdef QT_SOFTKEYS_ENABLED
     1001#if
    10031002    QAction *action = d->softKeyActions.value(button, 0);
    10041003    if (action) {
     
    12461245        d->retranslateStrings();
    12471246    }
    1248 #ifdef QT_SOFTKEYS_ENABLED
     1247#if
    12491248    else if (event->type() == QEvent::ParentChange) {
    12501249        QWidget *dialog = 0;
Note: See TracChangeset for help on using the changeset viewer.