Date:2010-12-09 19:36:48 (9 years 6 months ago)
Author:kyak
Commit:5d704f511865a5bd454f88e47c8a4fdd6c69e79b
Message:qstardict: disable mouse, fit Setting dialogue to 320x240

Files: qstardict/patches/001-qstardict.patch (10 diffs)

Change Details

qstardict/patches/001-qstardict.patch
3131
3232 // vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab cindent textwidth=120 formatoptions=tc
3333
34diff -ur qstardict-0.13.1.or/qstardict/main.cpp qstardict-0.13.1/qstardict/main.cpp
35--- qstardict-0.13.1.or/qstardict/main.cpp 2009-02-10 15:33:30.000000000 +0300
36@@ -35,6 +35,10 @@
37 #include <QTranslator>
38 #endif // QSTARDICT_WITH_TRANSLATIONS
39
40+#ifdef Q_WS_QWS
41+#include <QtGui/QWSServer>
42+#endif
43+
44 int main(int argc, char *argv[])
45 {
46     QStarDict::Application app(argc, argv);
47@@ -61,6 +65,9 @@
48     }
49 #endif // Q_OS_WIN
50
51+#ifdef Q_WS_QWS
52+ QWSServer::setCursorVisible(false);
53+#endif
54
55     return app.exec();
56 }
3457diff -ur qstardict-0.13.1.or/qstardict/mainwindow.cpp qstardict-0.13.1/qstardict/mainwindow.cpp
3558--- qstardict-0.13.1.or/qstardict/mainwindow.cpp 2009-02-10 15:33:30.000000000 +0300
3659+++ qstardict-0.13.1/qstardict/mainwindow.cpp 2010-12-08 22:05:16.400898587 +0300
...... 
4367     setDefaultStyleSheet(config.value("MainWindow/defaultStyleSheet", defaultStyleSheet()).toString());
4468 }
4569
46Только в qstardict-0.13.1/qstardict: mainwindow.cpp~
4770diff -ur qstardict-0.13.1.or/qstardict/mainwindow.ui qstardict-0.13.1/qstardict/mainwindow.ui
4871--- qstardict-0.13.1.or/qstardict/mainwindow.ui 2009-02-10 15:33:30.000000000 +0300
49+++ qstardict-0.13.1/qstardict/mainwindow.ui 2010-12-08 21:57:26.863898280 +0300
50@@ -1,190 +1,238 @@
72@@ -1,190 +1,241 @@
5173-<ui version="4.0" >
5274+<?xml version="1.0" encoding="UTF-8"?>
5375+<ui version="4.0">
...... 
6689    </rect>
6790   </property>
6891- <property name="windowTitle" >
92+ <property name="cursor">
93+ <cursorShape>BlankCursor</cursorShape>
94+ </property>
6995+ <property name="windowTitle">
7096    <string>QStarDict</string>
7197   </property>
...... 
190216+ <width>100</width>
191217+ <height>240</height>
192218+ </size>
193+ </property>
194+ <property name="features">
195+ <set>QDockWidget::DockWidgetClosable|QDockWidget::DockWidgetMovable</set>
196219    </property>
197220- <property name="allowedAreas" >
221+ <property name="features">
222+ <set>QDockWidget::DockWidgetClosable|QDockWidget::DockWidgetMovable</set>
223+ </property>
198224+ <property name="allowedAreas">
199225     <set>Qt::NoDockWidgetArea</set>
200226    </property>
...... 
378404     <string>F1</string>
379405    </property>
380406   </action>
381@@ -203,7 +251,7 @@
407@@ -203,7 +254,7 @@
382408   <tabstop>searchClearButton</tabstop>
383409  </tabstops>
384410  <resources>
...... 
387413  </resources>
388414  <connections>
389415   <connection>
390@@ -212,11 +260,11 @@
416@@ -212,11 +263,11 @@
391417    <receiver>searchBox</receiver>
392418    <slot>clear()</slot>
393419    <hints>
...... 
401427      <x>647</x>
402428      <y>61</y>
403429     </hint>
404@@ -228,11 +276,11 @@
430@@ -228,11 +279,11 @@
405431    <receiver>searchBox</receiver>
406432    <slot>setFocus()</slot>
407433    <hints>
...... 
415441      <x>647</x>
416442      <y>61</y>
417443     </hint>
418@@ -244,11 +292,11 @@
444@@ -244,11 +295,11 @@
419445    <receiver>queryButton</receiver>
420446    <slot>click()</slot>
421447    <hints>
...... 
429455      <x>661</x>
430456      <y>51</y>
431457     </hint>
432Только в qstardict-0.13.1/qstardict: mainwindow.ui~
433458diff -ur qstardict-0.13.1.or/qstardict/settingsdialog.ui qstardict-0.13.1/qstardict/settingsdialog.ui
434459--- qstardict-0.13.1.or/qstardict/settingsdialog.ui 2009-02-10 15:33:30.000000000 +0300
435+++ qstardict-0.13.1/qstardict/settingsdialog.ui 2010-12-08 10:27:03.160773247 +0300
436@@ -5,8 +5,8 @@
460@@ -1,84 +1,67 @@
461-<ui version="4.0" >
462+<?xml version="1.0" encoding="UTF-8"?>
463+<ui version="4.0">
464  <class>QStarDict::SettingsDialog</class>
465- <widget class="QDialog" name="QStarDict::SettingsDialog" >
466- <property name="geometry" >
467+ <widget class="QDialog" name="QStarDict::SettingsDialog">
468+ <property name="geometry">
437469    <rect>
438470     <x>0</x>
439471     <y>0</y>
...... 
443476+ <height>240</height>
444477    </rect>
445478   </property>
446   <property name="windowTitle" >
447@@ -45,8 +45,8 @@
448        <rect>
449         <x>0</x>
450         <y>0</y>
479- <property name="windowTitle" >
480+ <property name="sizePolicy">
481+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
482+ <horstretch>0</horstretch>
483+ <verstretch>0</verstretch>
484+ </sizepolicy>
485+ </property>
486+ <property name="cursor">
487+ <cursorShape>BlankCursor</cursorShape>
488+ </property>
489+ <property name="windowTitle">
490    <string>QStarDict Settings</string>
491   </property>
492- <property name="toolTip" >
493+ <property name="toolTip">
494    <string/>
495   </property>
496- <layout class="QGridLayout" >
497- <property name="margin" >
498- <number>9</number>
499- </property>
500- <property name="spacing" >
501- <number>6</number>
502- </property>
503- <item row="1" column="0" >
504- <widget class="QDialogButtonBox" name="buttonBox" >
505- <property name="orientation" >
506- <enum>Qt::Horizontal</enum>
507- </property>
508- <property name="standardButtons" >
509- <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
510- </property>
511- <property name="centerButtons" >
512- <bool>false</bool>
513- </property>
514- </widget>
515- </item>
516- <item row="0" column="0" >
517- <widget class="QTabWidget" name="tabWidget" >
518- <property name="currentIndex" >
519+ <layout class="QGridLayout" name="gridLayout">
520+ <item row="0" column="0">
521+ <widget class="QTabWidget" name="tabWidget">
522+ <property name="currentIndex">
523       <number>0</number>
524      </property>
525- <widget class="QWidget" name="tabGlobalSettings" >
526- <property name="geometry" >
527- <rect>
528- <x>0</x>
529- <y>0</y>
451530- <width>441</width>
452531- <height>414</height>
453+ <width>320</width>
454+ <height>240</height>
455        </rect>
456       </property>
457       <attribute name="title" >
458@@ -104,8 +104,8 @@
459        <rect>
460         <x>0</x>
461         <y>0</y>
532- </rect>
533- </property>
534- <attribute name="title" >
535+ <widget class="QWidget" name="tabGlobalSettings">
536+ <attribute name="title">
537        <string>Global settings</string>
538       </attribute>
539- <layout class="QVBoxLayout" >
540+ <layout class="QVBoxLayout">
541        <item>
542- <widget class="QCheckBox" name="instantSearchBox" >
543- <property name="text" >
544+ <widget class="QCheckBox" name="instantSearchBox">
545+ <property name="text">
546           <string>Instant search</string>
547          </property>
548         </widget>
549        </item>
550        <item>
551- <layout class="QHBoxLayout" >
552- <property name="spacing" >
553+ <layout class="QVBoxLayout" name="verticalLayout_2">
554+ <property name="spacing">
555           <number>6</number>
556          </property>
557- <property name="margin" >
558+ <property name="margin">
559           <number>0</number>
560          </property>
561          <item>
562- <widget class="QLabel" name="label_7" >
563- <property name="text" >
564+ <widget class="QLabel" name="label_7">
565+ <property name="text">
566             <string>Pronounce words using this command:</string>
567            </property>
568           </widget>
569          </item>
570          <item>
571- <widget class="QLineEdit" name="speechCmdEdit" >
572- <property name="toolTip" >
573- <string>Enter cmd for the speaching program.&lt;br>If cmd contains "%s" it will be replaced to word, else word will be writen to stdin of speech process.</string>
574+ <widget class="QLineEdit" name="speechCmdEdit">
575+ <property name="toolTip">
576+ <string>Enter cmd for the speaching program.&lt;br&gt;If cmd contains &quot;%s&quot; it will be replaced to word, else word will be writen to stdin of speech process.</string>
577            </property>
578           </widget>
579          </item>
580@@ -86,104 +69,96 @@
581        </item>
582        <item>
583         <spacer>
584- <property name="orientation" >
585+ <property name="orientation">
586           <enum>Qt::Vertical</enum>
587          </property>
588- <property name="sizeHint" stdset="0" >
589+ <property name="sizeHint" stdset="0">
590           <size>
591- <width>369</width>
592- <height>171</height>
593+ <width>320</width>
594+ <height>240</height>
595           </size>
596          </property>
597         </spacer>
598        </item>
599       </layout>
600      </widget>
601- <widget class="QWidget" name="tabDictionaries" >
602- <property name="geometry" >
603- <rect>
604- <x>0</x>
605- <y>0</y>
462606- <width>441</width>
463607- <height>414</height>
464+ <width>320</width>
465+ <height>240</height>
466        </rect>
467       </property>
468       <attribute name="title" >
469@@ -282,8 +282,8 @@
470        <rect>
471         <x>0</x>
472         <y>0</y>
608- </rect>
609- </property>
610- <attribute name="title" >
611+ <widget class="QWidget" name="tabDictionaries">
612+ <attribute name="title">
613        <string>Dictionaries</string>
614       </attribute>
615- <layout class="QVBoxLayout" >
616+ <layout class="QVBoxLayout">
617        <item>
618- <widget class="QGroupBox" name="groupBox_3" >
619- <property name="title" >
620+ <widget class="QGroupBox" name="groupBox_3">
621+ <property name="title">
622           <string>Dictionaries</string>
623          </property>
624- <layout class="QVBoxLayout" >
625+ <layout class="QVBoxLayout">
626           <item>
627- <widget class="QTableView" name="dictsTableView" >
628- <property name="editTriggers" >
629+ <widget class="QTableView" name="dictsTableView">
630+ <property name="editTriggers">
631              <set>QAbstractItemView::NoEditTriggers</set>
632             </property>
633- <property name="selectionMode" >
634+ <property name="selectionMode">
635              <enum>QAbstractItemView::SingleSelection</enum>
636             </property>
637- <property name="selectionBehavior" >
638+ <property name="selectionBehavior">
639              <enum>QAbstractItemView::SelectRows</enum>
640             </property>
641- <property name="showGrid" >
642+ <property name="showGrid">
643              <bool>false</bool>
644             </property>
645            </widget>
646           </item>
647           <item>
648- <layout class="QHBoxLayout" >
649+ <layout class="QHBoxLayout">
650             <item>
651- <widget class="QToolButton" name="dictsMoveUpButton" >
652- <property name="toolTip" >
653+ <widget class="QToolButton" name="dictsMoveUpButton">
654+ <property name="toolTip">
655                <string>Move up</string>
656               </property>
657- <property name="text" >
658+ <property name="text">
659                <string>Up</string>
660               </property>
661- <property name="icon" >
662- <iconset resource="pixmaps/pixmaps.qrc" >
663+ <property name="icon">
664+ <iconset resource="../plugins/stardict/pixmaps/pixmaps.qrc">
665                 <normaloff>:/icons/arrow-up.png</normaloff>:/icons/arrow-up.png</iconset>
666               </property>
667              </widget>
668             </item>
669             <item>
670- <widget class="QToolButton" name="dictsMoveDownButton" >
671- <property name="toolTip" >
672+ <widget class="QToolButton" name="dictsMoveDownButton">
673+ <property name="toolTip">
674                <string>Move down</string>
675               </property>
676- <property name="text" >
677+ <property name="text">
678                <string>Down</string>
679               </property>
680- <property name="icon" >
681- <iconset resource="pixmaps/pixmaps.qrc" >
682+ <property name="icon">
683+ <iconset resource="../plugins/stardict/pixmaps/pixmaps.qrc">
684                 <normaloff>:/icons/arrow-down.png</normaloff>:/icons/arrow-down.png</iconset>
685               </property>
686              </widget>
687             </item>
688             <item>
689- <widget class="QToolButton" name="dictsShowInfoButton" >
690- <property name="toolTip" >
691+ <widget class="QToolButton" name="dictsShowInfoButton">
692+ <property name="toolTip">
693                <string>Show information about dictionary</string>
694               </property>
695- <property name="text" >
696+ <property name="text">
697                <string>Show info</string>
698               </property>
699- <property name="icon" >
700- <iconset resource="pixmaps/pixmaps.qrc" >
701+ <property name="icon">
702+ <iconset resource="pixmaps/pixmaps.qrc">
703                 <normaloff>:/icons/dialog-information.png</normaloff>:/icons/dialog-information.png</iconset>
704               </property>
705              </widget>
706             </item>
707             <item>
708              <spacer>
709- <property name="orientation" >
710+ <property name="orientation">
711                <enum>Qt::Horizontal</enum>
712               </property>
713- <property name="sizeHint" stdset="0" >
714+ <property name="sizeHint" stdset="0">
715                <size>
716                 <width>40</width>
717                 <height>20</height>
718@@ -196,73 +171,80 @@
719          </layout>
720         </widget>
721        </item>
722+ </layout>
723+ </widget>
724+ <widget class="QWidget" name="tabPlugins">
725+ <attribute name="title">
726+ <string>Plugins</string>
727+ </attribute>
728+ <layout class="QVBoxLayout" name="verticalLayout">
729        <item>
730- <widget class="QGroupBox" name="groupBox_4" >
731- <property name="maximumSize" >
732+ <widget class="QGroupBox" name="groupBox_5">
733+ <property name="maximumSize">
734           <size>
735            <width>16777215</width>
736- <height>196</height>
737+ <height>16777215</height>
738           </size>
739          </property>
740- <property name="title" >
741+ <property name="title">
742           <string>Plugins</string>
743          </property>
744- <property name="alignment" >
745+ <property name="alignment">
746           <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
747          </property>
748- <layout class="QVBoxLayout" >
749+ <layout class="QVBoxLayout" name="_2">
750           <item>
751- <widget class="QTableView" name="pluginsTableView" >
752- <property name="editTriggers" >
753+ <widget class="QTableView" name="pluginsTableView">
754+ <property name="editTriggers">
755              <set>QAbstractItemView::NoEditTriggers</set>
756             </property>
757- <property name="selectionMode" >
758+ <property name="selectionMode">
759              <enum>QAbstractItemView::SingleSelection</enum>
760             </property>
761- <property name="selectionBehavior" >
762+ <property name="selectionBehavior">
763              <enum>QAbstractItemView::SelectRows</enum>
764             </property>
765- <property name="showGrid" >
766+ <property name="showGrid">
767              <bool>false</bool>
768             </property>
769            </widget>
770           </item>
771           <item>
772- <layout class="QHBoxLayout" >
773+ <layout class="QHBoxLayout" name="_3">
774             <item>
775- <widget class="QToolButton" name="pluginsShowInfoButton" >
776- <property name="toolTip" >
777+ <widget class="QToolButton" name="pluginsShowInfoButton">
778+ <property name="toolTip">
779                <string>Show information about plugin</string>
780               </property>
781- <property name="text" >
782+ <property name="text">
783                <string>Info</string>
784               </property>
785- <property name="icon" >
786- <iconset resource="pixmaps/pixmaps.qrc" >
787+ <property name="icon">
788+ <iconset resource="pixmaps/pixmaps.qrc">
789                 <normaloff>:/icons/dialog-information.png</normaloff>:/icons/dialog-information.png</iconset>
790               </property>
791              </widget>
792             </item>
793             <item>
794- <widget class="QToolButton" name="pluginsConfigureButton" >
795- <property name="toolTip" >
796+ <widget class="QToolButton" name="pluginsConfigureButton">
797+ <property name="toolTip">
798                <string>Configure plugin</string>
799               </property>
800- <property name="text" >
801+ <property name="text">
802                <string>Configure</string>
803               </property>
804- <property name="icon" >
805- <iconset resource="pixmaps/pixmaps.qrc" >
806+ <property name="icon">
807+ <iconset resource="pixmaps/pixmaps.qrc">
808                 <normaloff>:/icons/configure.png</normaloff>:/icons/configure.png</iconset>
809               </property>
810              </widget>
811             </item>
812             <item>
813              <spacer>
814- <property name="orientation" >
815+ <property name="orientation">
816                <enum>Qt::Horizontal</enum>
817               </property>
818- <property name="sizeHint" stdset="0" >
819+ <property name="sizeHint" stdset="0">
820                <size>
821                 <width>40</width>
822                 <height>20</height>
823@@ -277,136 +259,128 @@
824        </item>
825       </layout>
826      </widget>
827- <widget class="QWidget" name="tabPopupWindow" >
828- <property name="geometry" >
829- <rect>
830- <x>0</x>
831- <y>0</y>
473832- <width>640</width>
474833- <height>409</height>
475+ <width>320</width>
476+ <height>240</height>
477        </rect>
478       </property>
479       <attribute name="title" >
480@@ -565,8 +565,8 @@
481        <rect>
482         <x>0</x>
483         <y>0</y>
834- </rect>
835- </property>
836- <attribute name="title" >
837- <string>Popup window</string>
838+ <widget class="QWidget" name="tabPopupWindow">
839+ <attribute name="title">
840+ <string>Behaviour</string>
841       </attribute>
842- <layout class="QGridLayout" >
843- <property name="margin" >
844+ <layout class="QGridLayout">
845+ <property name="margin">
846         <number>9</number>
847        </property>
848- <property name="spacing" >
849+ <property name="spacing">
850         <number>6</number>
851        </property>
852- <item row="0" column="0" >
853- <widget class="QGroupBox" name="groupBox" >
854- <property name="title" >
855+ <item row="0" column="0">
856+ <widget class="QGroupBox" name="groupBox">
857+ <property name="title">
858           <string>Behavior</string>
859          </property>
860- <layout class="QGridLayout" >
861- <property name="margin" >
862+ <layout class="QGridLayout">
863+ <property name="margin">
864            <number>9</number>
865           </property>
866- <property name="spacing" >
867+ <property name="spacing">
868            <number>6</number>
869           </property>
870- <item row="4" column="0" >
871- <layout class="QVBoxLayout" >
872- <property name="spacing" >
873+ <item row="4" column="0">
874+ <layout class="QVBoxLayout">
875+ <property name="spacing">
876              <number>6</number>
877             </property>
878- <property name="margin" >
879+ <property name="margin">
880              <number>0</number>
881             </property>
882             <item>
883- <widget class="QCheckBox" name="pronounceWordBox" >
884- <property name="text" >
885+ <widget class="QCheckBox" name="pronounceWordBox">
886+ <property name="text">
887                <string>Pronounce the word</string>
888               </property>
889              </widget>
890             </item>
891            </layout>
892           </item>
893- <item row="3" column="0" >
894- <layout class="QHBoxLayout" >
895- <property name="spacing" >
896+ <item row="3" column="0">
897+ <layout class="QHBoxLayout">
898+ <property name="spacing">
899              <number>6</number>
900             </property>
901- <property name="margin" >
902+ <property name="margin">
903              <number>0</number>
904             </property>
905             <item>
906- <widget class="QLabel" name="label_4" >
907- <property name="text" >
908+ <widget class="QLabel" name="label_4">
909+ <property name="text">
910                <string>Timeout before hide after mouse over</string>
911               </property>
912              </widget>
913             </item>
914             <item>
915- <widget class="QDoubleSpinBox" name="timeoutBeforeHideSpin" >
916- <property name="specialValueText" >
917+ <widget class="QDoubleSpinBox" name="timeoutBeforeHideSpin">
918+ <property name="specialValueText">
919                <string>Don't hide</string>
920               </property>
921- <property name="suffix" >
922+ <property name="suffix">
923                <string> sec</string>
924               </property>
925- <property name="decimals" >
926+ <property name="decimals">
927                <number>1</number>
928               </property>
929- <property name="minimum" >
930+ <property name="minimum">
931                <double>0.000000000000000</double>
932               </property>
933- <property name="maximum" >
934+ <property name="maximum">
935                <double>10.000000000000000</double>
936               </property>
937- <property name="singleStep" >
938+ <property name="singleStep">
939                <double>0.100000000000000</double>
940               </property>
941- <property name="value" >
942+ <property name="value">
943                <double>0.500000000000000</double>
944               </property>
945              </widget>
946             </item>
947            </layout>
948           </item>
949- <item row="2" column="0" >
950- <layout class="QHBoxLayout" >
951- <property name="spacing" >
952+ <item row="2" column="0">
953+ <layout class="QHBoxLayout">
954+ <property name="spacing">
955              <number>6</number>
956             </property>
957- <property name="margin" >
958+ <property name="margin">
959              <number>0</number>
960             </property>
961             <item>
962- <widget class="QCheckBox" name="useScanModifierBox" >
963- <property name="enabled" >
964+ <widget class="QCheckBox" name="useScanModifierBox">
965+ <property name="enabled">
966                <bool>true</bool>
967               </property>
968- <property name="text" >
969+ <property name="text">
970                <string>Show only if modifier pressed</string>
971               </property>
972              </widget>
973             </item>
974             <item>
975- <widget class="QComboBox" name="modifierKeyBox" >
976- <property name="enabled" >
977+ <widget class="QComboBox" name="modifierKeyBox">
978+ <property name="enabled">
979                <bool>false</bool>
980               </property>
981               <item>
982- <property name="text" >
983+ <property name="text">
984                 <string>Alt</string>
985                </property>
986               </item>
987               <item>
988- <property name="text" >
989+ <property name="text">
990                 <string>Control</string>
991                </property>
992               </item>
993               <item>
994- <property name="text" >
995+ <property name="text">
996                 <string>Shift</string>
997                </property>
998               </item>
999               <item>
1000- <property name="text" >
1001+ <property name="text">
1002                 <string>Win</string>
1003                </property>
1004               </item>
1005@@ -414,19 +388,19 @@
1006             </item>
1007            </layout>
1008           </item>
1009- <item row="0" column="0" >
1010- <widget class="QCheckBox" name="useScanBox" >
1011- <property name="text" >
1012+ <item row="0" column="0">
1013+ <widget class="QCheckBox" name="useScanBox">
1014+ <property name="text">
1015              <string>Scan selection</string>
1016             </property>
1017- <property name="checked" >
1018+ <property name="checked">
1019              <bool>true</bool>
1020             </property>
1021            </widget>
1022           </item>
1023- <item row="1" column="0" >
1024- <widget class="QCheckBox" name="showIfNotFoundBox" >
1025- <property name="text" >
1026+ <item row="1" column="0">
1027+ <widget class="QCheckBox" name="showIfNotFoundBox">
1028+ <property name="text">
1029              <string>Show if word not found</string>
1030             </property>
1031            </widget>
1032@@ -434,108 +408,128 @@
1033          </layout>
1034         </widget>
1035        </item>
1036- <item row="1" column="0" >
1037- <widget class="QGroupBox" name="groupBox_2" >
1038- <property name="title" >
1039- <string>Apperance</string>
1040+ <item row="1" column="0">
1041+ <spacer>
1042+ <property name="orientation">
1043+ <enum>Qt::Vertical</enum>
1044+ </property>
1045+ <property name="sizeHint" stdset="0">
1046+ <size>
1047+ <width>20</width>
1048+ <height>101</height>
1049+ </size>
1050          </property>
1051- <layout class="QGridLayout" >
1052- <property name="margin" >
1053+ </spacer>
1054+ </item>
1055+ </layout>
1056+ </widget>
1057+ <widget class="QWidget" name="tabAppearance">
1058+ <attribute name="title">
1059+ <string>View</string>
1060+ </attribute>
1061+ <layout class="QVBoxLayout" name="verticalLayout_3">
1062+ <item>
1063+ <widget class="QGroupBox" name="groupBox_4">
1064+ <property name="title">
1065+ <string>View</string>
1066+ </property>
1067+ <layout class="QGridLayout" name="_4">
1068+ <property name="margin">
1069            <number>9</number>
1070           </property>
1071- <property name="spacing" >
1072+ <property name="spacing">
1073            <number>6</number>
1074           </property>
1075- <item row="2" column="0" >
1076- <layout class="QHBoxLayout" >
1077- <property name="spacing" >
1078+ <item row="2" column="0">
1079+ <layout class="QHBoxLayout" name="_5">
1080+ <property name="spacing">
1081              <number>6</number>
1082             </property>
1083- <property name="margin" >
1084+ <property name="margin">
1085              <number>0</number>
1086             </property>
1087             <item>
1088- <widget class="QLabel" name="label_3" >
1089- <property name="text" >
1090+ <widget class="QLabel" name="label_8">
1091+ <property name="text">
1092                <string>Opacity</string>
1093               </property>
1094              </widget>
1095             </item>
1096             <item>
1097- <widget class="QSpinBox" name="popupOpacitySpin" >
1098- <property name="suffix" >
1099+ <widget class="QSpinBox" name="popupOpacitySpin">
1100+ <property name="suffix">
1101                <string>%</string>
1102               </property>
1103- <property name="prefix" >
1104+ <property name="prefix">
1105                <string/>
1106               </property>
1107- <property name="minimum" >
1108+ <property name="minimum">
1109                <number>1</number>
1110               </property>
1111- <property name="maximum" >
1112+ <property name="maximum">
1113                <number>100</number>
1114               </property>
1115- <property name="value" >
1116+ <property name="value">
1117                <number>100</number>
1118               </property>
1119              </widget>
1120             </item>
1121            </layout>
1122           </item>
1123- <item row="0" column="0" >
1124- <layout class="QHBoxLayout" >
1125- <property name="spacing" >
1126+ <item row="0" column="0">
1127+ <layout class="QHBoxLayout" name="_6">
1128+ <property name="spacing">
1129              <number>6</number>
1130             </property>
1131- <property name="margin" >
1132+ <property name="margin">
1133              <number>0</number>
1134             </property>
1135             <item>
1136- <widget class="QLabel" name="label_5" >
1137- <property name="text" >
1138+ <widget class="QLabel" name="label_9">
1139+ <property name="text">
1140                <string>Default width</string>
1141               </property>
1142              </widget>
1143             </item>
1144             <item>
1145- <widget class="QSpinBox" name="popupDefaultWidthSpin" >
1146- <property name="minimum" >
1147+ <widget class="QSpinBox" name="popupDefaultWidthSpin">
1148+ <property name="minimum">
1149                <number>96</number>
1150               </property>
1151- <property name="maximum" >
1152+ <property name="maximum">
1153                <number>9999</number>
1154               </property>
1155- <property name="value" >
1156+ <property name="value">
1157                <number>320</number>
1158               </property>
1159              </widget>
1160             </item>
1161            </layout>
1162           </item>
1163- <item row="1" column="0" >
1164- <layout class="QHBoxLayout" >
1165- <property name="spacing" >
1166+ <item row="1" column="0">
1167+ <layout class="QHBoxLayout" name="_7">
1168+ <property name="spacing">
1169              <number>6</number>
1170             </property>
1171- <property name="margin" >
1172+ <property name="margin">
1173              <number>0</number>
1174             </property>
1175             <item>
1176- <widget class="QLabel" name="label_6" >
1177- <property name="text" >
1178+ <widget class="QLabel" name="label_10">
1179+ <property name="text">
1180                <string>Default height</string>
1181               </property>
1182              </widget>
1183             </item>
1184             <item>
1185- <widget class="QSpinBox" name="popupDefaultHeightSpin" >
1186- <property name="minimum" >
1187+ <widget class="QSpinBox" name="popupDefaultHeightSpin">
1188+ <property name="minimum">
1189                <number>96</number>
1190               </property>
1191- <property name="maximum" >
1192+ <property name="maximum">
1193                <number>9999</number>
1194               </property>
1195- <property name="value" >
1196+ <property name="value">
1197                <number>240</number>
1198               </property>
1199              </widget>
1200@@ -545,41 +539,40 @@
1201          </layout>
1202         </widget>
1203        </item>
1204- <item row="2" column="0" >
1205- <spacer>
1206- <property name="orientation" >
1207- <enum>Qt::Vertical</enum>
1208- </property>
1209- <property name="sizeHint" stdset="0" >
1210- <size>
1211- <width>20</width>
1212- <height>101</height>
1213- </size>
1214- </property>
1215- </spacer>
1216- </item>
1217       </layout>
1218      </widget>
1219- <widget class="QWidget" name="tab" >
1220- <property name="geometry" >
1221- <rect>
1222- <x>0</x>
1223- <y>0</y>
4841224- <width>640</width>
4851225- <height>409</height>
486+ <width>320</width>
487+ <height>240</height>
488        </rect>
489       </property>
490       <attribute name="title" >
1226- </rect>
1227- </property>
1228- <attribute name="title" >
1229+ <widget class="QWidget" name="tab">
1230+ <attribute name="title">
1231        <string>Apperance</string>
1232       </attribute>
1233- <layout class="QGridLayout" >
1234- <item row="0" column="0" >
1235- <widget class="QStarDict::CSSEdit" native="1" name="apperanceCSSEdit" />
1236+ <layout class="QGridLayout">
1237+ <item row="0" column="0">
1238+ <widget class="QStarDict::CSSEdit" name="apperanceCSSEdit" native="true">
1239+ <property name="sizePolicy">
1240+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
1241+ <horstretch>0</horstretch>
1242+ <verstretch>0</verstretch>
1243+ </sizepolicy>
1244+ </property>
1245+ </widget>
1246        </item>
1247       </layout>
1248      </widget>
1249     </widget>
1250    </item>
1251+ <item row="1" column="0">
1252+ <widget class="QDialogButtonBox" name="buttonBox">
1253+ <property name="orientation">
1254+ <enum>Qt::Horizontal</enum>
1255+ </property>
1256+ <property name="standardButtons">
1257+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
1258+ </property>
1259+ <property name="centerButtons">
1260+ <bool>false</bool>
1261+ </property>
1262+ </widget>
1263+ </item>
1264   </layout>
1265  </widget>
1266  <customwidgets>
1267@@ -599,21 +592,16 @@
1268   <tabstop>dictsMoveUpButton</tabstop>
1269   <tabstop>dictsMoveDownButton</tabstop>
1270   <tabstop>dictsShowInfoButton</tabstop>
1271- <tabstop>pluginsTableView</tabstop>
1272- <tabstop>pluginsShowInfoButton</tabstop>
1273- <tabstop>pluginsConfigureButton</tabstop>
1274   <tabstop>useScanBox</tabstop>
1275   <tabstop>showIfNotFoundBox</tabstop>
1276   <tabstop>useScanModifierBox</tabstop>
1277   <tabstop>modifierKeyBox</tabstop>
1278   <tabstop>timeoutBeforeHideSpin</tabstop>
1279   <tabstop>pronounceWordBox</tabstop>
1280- <tabstop>popupDefaultWidthSpin</tabstop>
1281- <tabstop>popupDefaultHeightSpin</tabstop>
1282- <tabstop>popupOpacitySpin</tabstop>
1283  </tabstops>
1284  <resources>
1285- <include location="pixmaps/pixmaps.qrc" />
1286+ <include location="../plugins/stardict/pixmaps/pixmaps.qrc"/>
1287+ <include location="pixmaps/pixmaps.qrc"/>
1288  </resources>
1289  <connections>
1290   <connection>
1291@@ -622,11 +610,11 @@
1292    <receiver>QStarDict::SettingsDialog</receiver>
1293    <slot>accept()</slot>
1294    <hints>
1295- <hint type="sourcelabel" >
1296- <x>330</x>
1297- <y>587</y>
1298+ <hint type="sourcelabel">
1299+ <x>310</x>
1300+ <y>230</y>
1301     </hint>
1302- <hint type="destinationlabel" >
1303+ <hint type="destinationlabel">
1304      <x>410</x>
1305      <y>299</y>
1306     </hint>
1307@@ -638,11 +626,11 @@
1308    <receiver>QStarDict::SettingsDialog</receiver>
1309    <slot>reject()</slot>
1310    <hints>
1311- <hint type="sourcelabel" >
1312- <x>406</x>
1313- <y>587</y>
1314+ <hint type="sourcelabel">
1315+ <x>310</x>
1316+ <y>230</y>
1317     </hint>
1318- <hint type="destinationlabel" >
1319+ <hint type="destinationlabel">
1320      <x>410</x>
1321      <y>299</y>
1322     </hint>
1323@@ -654,13 +642,13 @@
1324    <receiver>modifierKeyBox</receiver>
1325    <slot>setEnabled(bool)</slot>
1326    <hints>
1327- <hint type="sourcelabel" >
1328- <x>165</x>
1329- <y>140</y>
1330+ <hint type="sourcelabel">
1331+ <x>194</x>
1332+ <y>85</y>
1333     </hint>
1334- <hint type="destinationlabel" >
1335- <x>273</x>
1336- <y>137</y>
1337+ <hint type="destinationlabel">
1338+ <x>289</x>
1339+ <y>85</y>
1340     </hint>
1341    </hints>
1342   </connection>

Archive Download the corresponding diff file



interactive