summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-08-03 15:57:17 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-08-03 15:57:17 -0500
commitc37c87bb87d0ca8e6189c1fbd4532f70bc438063 (patch)
tree5345b1a9ecb59be009b32a622694d40c29b1221a /src
parent5b1e2195666cac3f1bf9aae94d52980f18ddfd3f (diff)
downloadtqt3-c37c87bb87d0ca8e6189c1fbd4532f70bc438063.tar.gz
tqt3-c37c87bb87d0ca8e6189c1fbd4532f70bc438063.zip
Automated update from Qt3
Diffstat (limited to 'src')
-rw-r--r--src/iconview/qiconview.cpp22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/iconview/qiconview.cpp b/src/iconview/qiconview.cpp
index c1ba1ea34..236768d2a 100644
--- a/src/iconview/qiconview.cpp
+++ b/src/iconview/qiconview.cpp
@@ -2964,6 +2964,7 @@ TQIconView::~TQIconView()
d->toolTip = 0;
#endif
delete d;
+ d = NULL;
}
/*!
@@ -3227,7 +3228,12 @@ int TQIconView::index( const TQIconViewItem *item ) const
TQIconViewItem *TQIconView::firstItem() const
{
- return d->firstItem;
+ if (d) {
+ return d->firstItem;
+ }
+ else {
+ return NULL;
+ }
}
/*!
@@ -3239,7 +3245,12 @@ TQIconViewItem *TQIconView::firstItem() const
TQIconViewItem *TQIconView::lastItem() const
{
- return d->lastItem;
+ if (d) {
+ return d->lastItem;
+ }
+ else {
+ return NULL;
+ }
}
/*!
@@ -3251,7 +3262,12 @@ TQIconViewItem *TQIconView::lastItem() const
TQIconViewItem *TQIconView::currentItem() const
{
- return d->currentItem;
+ if (d) {
+ return d->currentItem;
+ }
+ else {
+ return NULL;
+ }
}
/*!