diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-06-15 19:18:26 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-06-15 19:18:26 +0200 |
commit | 06e9257cc3b6e1095ce63c9f80f9407493c1f227 (patch) | |
tree | 88619e64418303a664e78080bf92b294a4334e25 /src/analyzer/networkanalyzer.cpp | |
parent | This dangerous commit, 15 days to the release, removes the use of a default.css (diff) | |
download | rekonq-06e9257cc3b6e1095ce63c9f80f9407493c1f227.tar.xz |
Let analyzer panel columns to be resizable.
This anyway leave normal user in the need to resize them to see all the contents, so I added
a resizeContents call everytime the panel is filled
Diffstat (limited to 'src/analyzer/networkanalyzer.cpp')
-rw-r--r-- | src/analyzer/networkanalyzer.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/analyzer/networkanalyzer.cpp b/src/analyzer/networkanalyzer.cpp index 22a7c243..47713557 100644 --- a/src/analyzer/networkanalyzer.cpp +++ b/src/analyzer/networkanalyzer.cpp @@ -51,11 +51,11 @@ NetworkAnalyzer::NetworkAnalyzer(QWidget *parent) headers << i18n("Method") << i18n("URL") << i18n("Response") << i18n("Length") << i18n("Content Type") << i18n("Info"); _requestList->setHeaderLabels( headers ); - _requestList->header()->setResizeMode(0, QHeaderView::ResizeToContents); - _requestList->header()->setResizeMode(1, QHeaderView::Stretch); - _requestList->header()->setResizeMode(2, QHeaderView::ResizeToContents); - _requestList->header()->setResizeMode(3, QHeaderView::ResizeToContents); - _requestList->header()->setResizeMode(4, QHeaderView::ResizeToContents); + _requestList->header()->setResizeMode(0, QHeaderView::Interactive); + _requestList->header()->setResizeMode(1, QHeaderView::Interactive); + _requestList->header()->setResizeMode(2, QHeaderView::Interactive); + _requestList->header()->setResizeMode(3, QHeaderView::Interactive); + _requestList->header()->setResizeMode(4, QHeaderView::Interactive); _requestList->setAlternatingRowColors(true); @@ -107,6 +107,8 @@ void NetworkAnalyzer::addRequest( QNetworkAccessManager::Operation op, const QNe _mapper->setMapping( reply, reply ); connect( reply, SIGNAL( finished() ), _mapper, SLOT( map() ) ); + + _requestList->header()->resizeSections(QHeaderView::ResizeToContents); } |