[prev in list] [next in list] [prev in thread] [next in thread]
List: atlantik-devel
Subject: [atlantik-cvs] CVS: kdegames/atlantik/libatlantikui estatedetails.cpp,1.8,1.9 estatedetails.h,1.6,1.
From: kde () office ! kde ! org
Date: 2002-07-24 3:35:41
[Download RAW message or body]
Update of /home/kde/kdegames/atlantik/libatlantikui
In directory office:/tmp/cvs-serv24954/libatlantikui
Modified Files:
estatedetails.cpp estatedetails.h
Log Message:
display flow fixes
Index: estatedetails.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/estatedetails.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- estatedetails.cpp 2002/07/24 03:10:12 1.8
+++ estatedetails.cpp 2002/07/24 03:35:39 1.9
@@ -17,6 +17,7 @@
#include <qpainter.h>
#include <qpixmap.h>
#include <qlayout.h>
+#include <qptrlist.h>
#include <qvgroupbox.h>
#include <kdialog.h>
@@ -41,6 +42,7 @@
m_quartzBlocks = 0;
m_closeButton = 0;
+ m_buttons.setAutoDelete(true);
m_recreateQuartz = true;
m_mainLayout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
@@ -202,6 +204,7 @@
void EstateDetails::addButton(QString command, QString caption, bool enabled)
{
KPushButton *button = new KPushButton(caption, this);
+ m_buttons.append(button);
m_buttonCommandMap[(QObject *)button] = command;
m_buttonBox->addWidget(button);
@@ -229,7 +232,9 @@
}
// Delete buttons
-
+ m_buttons.clear();
+ m_buttonCommandMap.clear();
+
// Redraw details
b_recreate = true;
update();
Index: estatedetails.h
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/estatedetails.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- estatedetails.h 2002/07/24 03:10:13 1.6
+++ estatedetails.h 2002/07/24 03:35:39 1.7
@@ -63,6 +63,7 @@
QHBoxLayout *m_buttonBox;
QVGroupBox *m_textGroupBox;
QMap <QObject *, QString> m_buttonCommandMap;
+ QPtrList<KPushButton> m_buttons;
};
#endif
_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic