OSDN Git Service

Add logic to display stacks in notebook tree
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / dialog / TableDialog.java
index fd48177..3a0c5d3 100644 (file)
@@ -23,6 +23,7 @@ package cx.fbn.nevernote.dialog;
 import com.trolltech.qt.gui.QComboBox;\r
 import com.trolltech.qt.gui.QDialog;\r
 import com.trolltech.qt.gui.QGridLayout;\r
+import com.trolltech.qt.gui.QIcon;\r
 import com.trolltech.qt.gui.QIntValidator;\r
 import com.trolltech.qt.gui.QLabel;\r
 import com.trolltech.qt.gui.QLineEdit;\r
@@ -39,12 +40,13 @@ public class TableDialog extends QDialog {
        private final QLabel            error;\r
        private final QIntValidator     widthValidator;\r
        private final QComboBox          unit;\r
-       \r
+       private final String iconPath = new String("classpath:cx/fbn/nevernote/icons/");\r
        \r
        // Constructor\r
        public TableDialog() {\r
                okPressed = false;\r
                setWindowTitle(tr("Insert Table"));\r
+               setWindowIcon(new QIcon(iconPath+"table.png"));\r
                QGridLayout grid = new QGridLayout();\r
                QGridLayout input = new QGridLayout();\r
                QGridLayout msgGrid = new QGridLayout();\r