Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/widgets/qlineedit.h

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information (qt-info@nokia.com)
     4** All rights reserved.
     5** Contact: Nokia Corporation (qt-info@nokia.com)
    56**
    67** This file is part of the QtGui module of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    23 ** In addition, as a special exception, Nokia gives you certain
    24 ** additional rights. These rights are described in the Nokia Qt LGPL
    25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26 ** package.
     24** In addition, as a special exception, Nokia gives you certain additional
     25** rights.  These rights are described in the Nokia Qt LGPL Exception
     26** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you have questions regarding the use of this file, please contact
     37** Nokia at qt-info@nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    4545#include <QtGui/qframe.h>
    4646#include <QtCore/qstring.h>
     47#include <QtCore/qmargins.h>
    4748
    4849QT_BEGIN_HEADER
     
    8384    Q_PROPERTY(bool redoAvailable READ isRedoAvailable)
    8485    Q_PROPERTY(bool acceptableInput READ hasAcceptableInput)
     86// ### Qt 4.7: remove this #if guard
     87#if (QT_VERSION >= 0x407000) || defined(Q_WS_MAEMO_5)
     88    Q_PROPERTY(QString placeholderText READ placeholderText WRITE setPlaceholderText)
     89#endif
    8590
    8691public:
     
    97102
    98103    QString displayText() const;
     104
     105// ### Qt 4.7: remove this #if guard
     106#if (QT_VERSION >= 0x407000) || defined(Q_WS_MAEMO_5)
     107    QString placeholderText() const;
     108    void setPlaceholderText(const QString &);
     109#endif
    99110
    100111    int maxLength() const;
     
    159170
    160171    void setTextMargins(int left, int top, int right, int bottom);
     172    void setTextMargins(const QMargins &margins);
    161173    void getTextMargins(int *left, int *top, int *right, int *bottom) const;
     174    QMargins textMargins() const;
    162175
    163176public Q_SLOTS:
     
    267280    Q_DISABLE_COPY(QLineEdit)
    268281    Q_DECLARE_PRIVATE(QLineEdit)
    269     Q_PRIVATE_SLOT(d_func(), void _q_clipboardChanged())
    270282    Q_PRIVATE_SLOT(d_func(), void _q_handleWindowActivate())
    271     Q_PRIVATE_SLOT(d_func(), void _q_deleteSelected())
     283    Q_PRIVATE_SLOT(d_func(), void _q_textEdited(const QString &))
     284    Q_PRIVATE_SLOT(d_func(), void _q_cursorPositionChanged(int, int))
    272285#ifndef QT_NO_COMPLETER
    273286    Q_PRIVATE_SLOT(d_func(), void _q_completionHighlighted(QString))
    274287#endif
     288#ifdef QT_KEYPAD_NAVIGATION
     289    Q_PRIVATE_SLOT(d_func(), void _q_editFocusChange(bool))
     290#endif
     291    Q_PRIVATE_SLOT(d_func(), void _q_selectionChanged())
    275292};
    276293
Note: See TracChangeset for help on using the changeset viewer.