[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars/widgets
From: Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date: 2009-08-28 11:31:52
Message-ID: 1251459112.508267.15804.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1016632 by khudyakov:
Fix InfoBoxWidget::setPoint. Update widget size and redraw it.
Change construtor type signature. It now accepts QPoint instead of
pair of ints
M +4 -2 infoboxwidget.cpp
M +2 -1 infoboxwidget.h
--- trunk/KDE/kdeedu/kstars/kstars/widgets/infoboxwidget.cpp #1016631:1016632
@@ -44,13 +44,13 @@
}
-InfoBoxWidget::InfoBoxWidget(bool shade, int x, int y, QStringList str, QWidget* parent) :
+InfoBoxWidget::InfoBoxWidget(bool shade, QPoint pos, QStringList str, QWidget* parent) :
QWidget(parent),
m_strings(str),
m_grabbed(false),
m_shaded(shade)
{
- move(x,y);
+ move(pos);
updateSize();
}
@@ -131,6 +131,8 @@
m_strings[2] =
i18nc( "Azimuth", "Az" ) + ": " + p->az()->toDMSString(true) + " " +
i18nc( "Altitude", "Alt" ) + ": " + p->alt()->toDMSString(true);
+ updateSize();
+ update();
}
void InfoBoxWidget::resizeEvent(QResizeEvent*) {
--- trunk/KDE/kdeedu/kstars/kstars/widgets/infoboxwidget.h #1016631:1016632
@@ -19,6 +19,7 @@
#define INFOBOXWIDGET_H_
#include <QWidget>
+#include <QPoint>
#include <QString>
#include <QStringList>
@@ -29,7 +30,7 @@
{
Q_OBJECT
public:
- InfoBoxWidget(bool shade, int x, int y, QStringList str = QStringList(), QWidget* parent = 0);
+ InfoBoxWidget(bool shade, QPoint pos, QStringList str = QStringList(), QWidget* parent = 0);
virtual ~InfoBoxWidget();
public slots:
void slotTimeChanged();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic