summaryrefslogtreecommitdiffstats
path: root/examples/xml
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-05-06 12:54:24 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-07 17:55:47 +0200
commit8ec1594e63fbfbd387947a377e20a7b16fdce388 (patch)
tree5641f9ebbcf59a927b1a9cd1afb81a5cb35b2252 /examples/xml
parent365cd77c2679d1f672dfd2f8403af9fe410a162f (diff)
Rename setResizeMode to setSectionResizeMode.
The overload of this method was renamed in b64426248d2212eb59535b2ca383d30fdb5e1c7a but this one was not. Change-Id: I60a6ddf0fcf9deea31ccf51e7b0db16c66023356 Reviewed-by: David Faure <faure@kde.org> Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Diffstat (limited to 'examples/xml')
-rw-r--r--examples/xml/dombookmarks/xbeltree.cpp2
-rw-r--r--examples/xml/rsslisting/rsslisting.cpp2
-rw-r--r--examples/xml/saxbookmarks/mainwindow.cpp2
-rw-r--r--examples/xml/streambookmarks/mainwindow.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/xml/dombookmarks/xbeltree.cpp b/examples/xml/dombookmarks/xbeltree.cpp
index 196338e2a6..b5091ad784 100644
--- a/examples/xml/dombookmarks/xbeltree.cpp
+++ b/examples/xml/dombookmarks/xbeltree.cpp
@@ -48,7 +48,7 @@ XbelTree::XbelTree(QWidget *parent)
QStringList labels;
labels << tr("Title") << tr("Location");
- header()->setResizeMode(QHeaderView::Stretch);
+ header()->setSectionResizeMode(QHeaderView::Stretch);
setHeaderLabels(labels);
folderIcon.addPixmap(style()->standardPixmap(QStyle::SP_DirClosedIcon),
diff --git a/examples/xml/rsslisting/rsslisting.cpp b/examples/xml/rsslisting/rsslisting.cpp
index cd6a595764..37b7ad95dd 100644
--- a/examples/xml/rsslisting/rsslisting.cpp
+++ b/examples/xml/rsslisting/rsslisting.cpp
@@ -86,7 +86,7 @@ RSSListing::RSSListing(QWidget *parent)
QStringList headerLabels;
headerLabels << tr("Title") << tr("Link");
treeWidget->setHeaderLabels(headerLabels);
- treeWidget->header()->setResizeMode(QHeaderView::ResizeToContents);
+ treeWidget->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
connect(&manager, SIGNAL(finished(QNetworkReply*)),
this, SLOT(finished(QNetworkReply*)));
diff --git a/examples/xml/saxbookmarks/mainwindow.cpp b/examples/xml/saxbookmarks/mainwindow.cpp
index c68cea0259..a26c71c845 100644
--- a/examples/xml/saxbookmarks/mainwindow.cpp
+++ b/examples/xml/saxbookmarks/mainwindow.cpp
@@ -50,7 +50,7 @@ MainWindow::MainWindow()
labels << tr("Title") << tr("Location");
treeWidget = new QTreeWidget;
- treeWidget->header()->setResizeMode(QHeaderView::Stretch);
+ treeWidget->header()->setSectionResizeMode(QHeaderView::Stretch);
treeWidget->setHeaderLabels(labels);
setCentralWidget(treeWidget);
diff --git a/examples/xml/streambookmarks/mainwindow.cpp b/examples/xml/streambookmarks/mainwindow.cpp
index daf41dec81..65c86f8bd2 100644
--- a/examples/xml/streambookmarks/mainwindow.cpp
+++ b/examples/xml/streambookmarks/mainwindow.cpp
@@ -51,7 +51,7 @@ MainWindow::MainWindow()
labels << tr("Title") << tr("Location");
treeWidget = new QTreeWidget;
- treeWidget->header()->setResizeMode(QHeaderView::Stretch);
+ treeWidget->header()->setSectionResizeMode(QHeaderView::Stretch);
treeWidget->setHeaderLabels(labels);
setCentralWidget(treeWidget);