diff options
Diffstat (limited to 'examples/xml')
-rw-r--r-- | examples/xml/dombookmarks/xbeltree.cpp | 2 | ||||
-rw-r--r-- | examples/xml/rsslisting/rsslisting.cpp | 2 | ||||
-rw-r--r-- | examples/xml/saxbookmarks/mainwindow.cpp | 2 | ||||
-rw-r--r-- | examples/xml/streambookmarks/mainwindow.cpp | 2 |
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); |