Commit 4c5354c3 authored by Ian Humphrey's avatar Ian Humphrey
Browse files

Fixed WarningTreeWidget to use a horizontal scroll bar when the content...

Fixed WarningTreeWidget to use a horizontal scroll bar when the content exceeds the window bounds. Fixes #5164.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/branches/ipce@8244 41f8697f-d340-4b68-9986-7bafba869bb8
parent 40a83ad9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -30,5 +30,8 @@ namespace Isis {

    QTreeWidgetItem *warningItem = new QTreeWidgetItem(this);
    warningItem->setText(0, text);
    // Makes sure the text fits inside the column, this will actually enable horizontal
    // scrolling if the resized column is wider than the widget view.
    resizeColumnToContents(0);
  }
}
+4 −1
Original line number Diff line number Diff line
@@ -11,7 +11,10 @@ namespace Isis {
   * @author 2012-05-29 Steven Lambright and Tracie Sucharski
   *
   * @internal
   *   @histroy 2012-07-31 Kimberly Oyama - Added comments to some of the methods.
   *   @history 2012-07-31 Kimberly Oyama - Added comments to some of the methods.
   *   @history 2017-10-11 Ian Humphrey - Added a resize column call to showWarning() to ensure
   *                           the column size is fit to the width of the warning text. This
   *                           enables horizontal scrolling for the warning widget. Fixes #5164.
   */
  class WarningTreeWidget : public QTreeWidget {
      Q_OBJECT