idok-commit AT lists.psi.ch
Subject: Commit emails of the iDok project
List archive
- From: "Apache" <apache AT savannah.psi.ch>
- To: idok-commit AT lists.psi.ch
- Subject: [idok-commit] idok commit r138 - trunk/java/ch/idok/qtgui
- Date: Mon, 7 Jul 2008 11:45:45 +0200
- List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
- List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>
Author: huebner AT PSI.CH
Date: Mon Jul 7 11:45:45 2008
New Revision: 138
Log:
Improved scrolling behavior when expanding repository item tree.
Modified:
trunk/java/ch/idok/qtgui/DocumentController.java
Modified: trunk/java/ch/idok/qtgui/DocumentController.java
==============================================================================
--- trunk/java/ch/idok/qtgui/DocumentController.java (original)
+++ trunk/java/ch/idok/qtgui/DocumentController.java Mon Jul 7 11:45:45
2008
@@ -29,14 +29,17 @@
import ch.idok.common.repository.RepositoryLogEntry;
import ch.idok.common.repository.RepositoryPath;
+import com.trolltech.qt.QFlags;
import com.trolltech.qt.core.QFileInfo;
import com.trolltech.qt.core.QObject;
import com.trolltech.qt.core.Qt;
+import com.trolltech.qt.core.Global.QtMsgType;
import com.trolltech.qt.gui.QCursor;
import com.trolltech.qt.gui.QGridLayout;
import com.trolltech.qt.gui.QMessageBox;
import com.trolltech.qt.gui.QTreeWidgetItem;
import com.trolltech.qt.gui.QWidget;
+import com.trolltech.qt.gui.QAbstractItemView.ScrollHint;
/**
* Controls a single document, preview and metadata display. There exists
only
@@ -138,6 +141,8 @@
newItem.setText(5, message.substring(0, Math.min(40, message
.length())));
newItem.setData(5, Qt.ItemDataRole.ToolTipRole, message);
+ ui_.browseTreeWidget.setCurrentItem(item);
+ ui_.browseTreeWidget.scrollToItem(item,
ScrollHint.PositionAtCenter);
}
} catch (DmsException e) {
@@ -146,6 +151,7 @@
.getLogMessage()));
} finally {
ui_.browseTabWidget.unsetCursor();
+
}
}
- [idok-commit] idok commit r138 - trunk/java/ch/idok/qtgui, Apache, 07/07/2008
Archive powered by MHonArc 2.6.19.