Skip to content
Permalink
Browse files
Adjust column widths in the identify results dialog to better fit the…
… contents

git-svn-id: http://svn.osgeo.org/qgis/trunk@5477 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed May 19, 2006
1 parent 862a654 commit fa510af29becec619b6dd2685942b1f35473e0b2
Showing with 12 additions and 4 deletions.
  1. +8 −3 src/gui/qgsidentifyresults.cpp
  2. +1 −0 src/gui/qgsidentifyresults.h
  3. +3 −1 src/gui/qgsmaptoolidentify.cpp
@@ -84,9 +84,6 @@ void QgsIdentifyResults::popupContextMenu(Q3ListViewItem* item,
QLabel* popupLabel = new QLabel( mActionPopup );
popupLabel->setText( tr("<center>Run action</center>") );
// TODO: Qt4 uses "QAction"s - need to refactor.
#if QT_VERSION < 0x040000
mActionPopup->insertItem(popupLabel);
#endif
mActionPopup->insertSeparator();

QgsAttributeAction::aIter iter = mActions.begin();
@@ -205,6 +202,14 @@ void QgsIdentifyResults::showAllAttributes() {
lstResults->setOpen(*qlvii, true);
}

/** adjust all of the colums to show their contents */
void QgsIdentifyResults::adjustColumnWidths()
{
lstResults->adjustColumn(0);
lstResults->adjustColumn(1);
}


void QgsIdentifyResults::clear()
{
lstResults->clear();
@@ -60,6 +60,7 @@ class QgsIdentifyResults: public QDialog, private Ui::QgsIdentifyResultsBase
void restorePosition();
void closeEvent(QCloseEvent *e);
void showAllAttributes();
void adjustColumnWidths();

/** Remove results */
void clear();
@@ -305,7 +305,9 @@ void QgsMapToolIdentify::identifyVectorLayer(QgsVectorLayer* layer, const QgsPoi
}

QApplication::restoreOverrideCursor();


mResults->adjustColumnWidths();

mResults->show();
}
else

0 comments on commit fa510af

Please sign in to comment.