Changeset View
Changeset View
Standalone View
Standalone View
ui/annotwindow.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 49 | CloseButton( QWidget * parent = Q_NULLPTR ) | |||
---|---|---|---|---|---|
50 | : QPushButton( parent ) | 50 | : QPushButton( parent ) | ||
51 | { | 51 | { | ||
52 | setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ); | 52 | setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ); | ||
53 | QSize size = QSize( 14, 14 ).expandedTo( QApplication::globalStrut() ); | 53 | QSize size = QSize( 14, 14 ).expandedTo( QApplication::globalStrut() ); | ||
54 | setFixedSize( size ); | 54 | setFixedSize( size ); | ||
55 | setIcon( style()->standardIcon( QStyle::SP_DockWidgetCloseButton ) ); | 55 | setIcon( style()->standardIcon( QStyle::SP_DockWidgetCloseButton ) ); | ||
56 | setIconSize( size ); | 56 | setIconSize( size ); | ||
57 | setToolTip( i18n( "Close this note" ) ); | 57 | setToolTip( i18n( "Close this note" ) ); | ||
58 | setCursor( Qt::ArrowCursor ); | ||||
58 | } | 59 | } | ||
59 | }; | 60 | }; | ||
60 | 61 | | |||
61 | 62 | | |||
62 | class MovableTitle | 63 | class MovableTitle | ||
63 | : public QWidget | 64 | : public QWidget | ||
64 | { | 65 | { | ||
65 | Q_OBJECT | 66 | Q_OBJECT | ||
▲ Show 20 Lines • Show All 362 Lines • Show Last 20 Lines |