|
From: Tapio V. <aa...@us...> - 2011-01-07 13:39:47
|
Module: editor Branch: master Commit: 3792bb1066ee536791c9a0ee877e7c46f6eac75b Author: Tapio Vierros <tap...@gm...> Date: Fri Jan 7 15:38:53 2011 +0200 Minimum size for notes (no more resizing to invisibility). --- notelabel.cc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/notelabel.cc b/notelabel.cc index 38ff366..df1b958 100644 --- a/notelabel.cc +++ b/notelabel.cc @@ -13,9 +13,10 @@ NoteLabel::NoteLabel(const QString &text, QWidget *parent, const QPoint &positio if (!position.isNull()) move(position); - show(); setMouseTracking(true); + setMinimumSize(10, 10); setAttribute(Qt::WA_DeleteOnClose); + show(); } void NoteLabel::createPixmap(QSize size) |