1 /**************************************************************************** 2 ** 3 ** DQt - D bindings for the Qt Toolkit 4 ** 5 ** GNU Lesser General Public License Usage 6 ** This file may be used under the terms of the GNU Lesser 7 ** General Public License version 3 as published by the Free Software 8 ** Foundation and appearing in the file LICENSE.LGPL3 included in the 9 ** packaging of this file. Please review the following information to 10 ** ensure the GNU Lesser General Public License version 3 requirements 11 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 12 ** 13 ****************************************************************************/ 14 module qt.widgets.commandlinkbutton; 15 extern(C++): 16 17 import qt.config; 18 import qt.core.coreevent; 19 import qt.core.size; 20 import qt.core.string; 21 import qt.gui.event; 22 import qt.helpers; 23 import qt.widgets.pushbutton; 24 import qt.widgets.widget; 25 26 /+ QT_REQUIRE_CONFIG(commandlinkbutton); +/ 27 28 29 30 extern(C++, class) struct QCommandLinkButtonPrivate; 31 32 class /+ Q_WIDGETS_EXPORT +/ QCommandLinkButton: QPushButton 33 { 34 mixin(Q_OBJECT); 35 36 /+ Q_PROPERTY(QString description READ description WRITE setDescription) 37 Q_PROPERTY(bool flat READ isFlat WRITE setFlat DESIGNABLE false) +/ 38 39 public: 40 /+ explicit +/this(QWidget parent = null); 41 /+ explicit +/this(ref const(QString) text, QWidget parent = null); 42 /+ explicit +/this(ref const(QString) text, ref const(QString) description, QWidget parent = null); 43 ~this(); 44 45 final QString description() const; 46 final void setDescription(ref const(QString) description); 47 48 // QTBUG-68722 49 /+ #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) +/ 50 protected: 51 /+ #else 52 public: 53 #endif +/ 54 override QSize sizeHint() const; 55 override int heightForWidth(int) const; 56 override QSize minimumSizeHint() const; 57 protected: 58 override bool event(QEvent e); 59 override void paintEvent(QPaintEvent ); 60 61 private: 62 /+ Q_DISABLE_COPY(QCommandLinkButton) +/ 63 /+ Q_DECLARE_PRIVATE(QCommandLinkButton) +/ 64 } 65