From c466264d43b25a1b9d8f5bee935e06067541fd2f Mon Sep 17 00:00:00 2001 From: "beville@gmail.com" Date: Sat, 2 Feb 2013 18:39:39 +0000 Subject: [PATCH] UI tweaks for auto tag match window git-svn-id: http://comictagger.googlecode.com/svn/trunk@391 6c5673fe-1810-88d6-992b-cd32ca31540c --- autotagmatchwindow.py | 6 ++++++ autotagmatchwindow.ui | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/autotagmatchwindow.py b/autotagmatchwindow.py index 7e12b09..7cc0de7 100644 --- a/autotagmatchwindow.py +++ b/autotagmatchwindow.py @@ -112,6 +112,12 @@ class AutoTagMatchWindow(QtGui.QDialog): self.twList.setItem(row, 2, item) row += 1 + + self.twList.resizeColumnsToContents() + self.twList.setSortingEnabled(True) + self.twList.sortItems( 2 , QtCore.Qt.DescendingOrder ) + self.twList.selectRow(0) + self.twList.resizeColumnsToContents() def cellDoubleClicked( self, r, c ): diff --git a/autotagmatchwindow.ui b/autotagmatchwindow.ui index 92d2e82..acb46be 100644 --- a/autotagmatchwindow.ui +++ b/autotagmatchwindow.ui @@ -6,8 +6,8 @@ 0 0 - 831 - 506 + 907 + 507 @@ -32,6 +32,12 @@ 300 + + QFrame::Panel + + + QFrame::Sunken + TextLabel