Torrent properties dialog improvements

Simplify DND checkboxes drawing, this also fixes incorrect drawing on
Mac when file tree widget is inactive.
Do better job calculating column widths for file tree to avoid ellipsis.
Fix file tree sorting order for size and priority columns.
Change key to toggle priorities to Shift+Space instead of Enter/Return
to avoid conflicts with name editing and default button handling.
Fix selected tracker item background drawing in certain cases.
This commit is contained in:
Mike Gelfand
2015-06-15 21:07:46 +00:00
parent b0278ca353
commit 58312e6c16
11 changed files with 197 additions and 111 deletions

View File

@@ -44,8 +44,9 @@ class FileTreeView: public QTreeView
void openRequested (const QString& path);
protected:
// QObject
bool eventFilter (QObject *, QEvent *);
// QWidget
virtual void resizeEvent (QResizeEvent * event);
virtual void keyPressEvent (QKeyEvent * event);
private:
FileTreeModel * myModel;