Changeset c8ed26ddf1 in tspsg for ui


Ignore:
Timestamp:
Jul 17, 2012, 8:11:11 PM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
50b614b0ea
Parents:
7e8e1b444d
git-author:
Oleksii Serdiuk <contacts@…> (07/17/12 20:11:11)
git-committer:
Oleksii Serdiuk <contacts@…> (07/17/12 20:24:34)
Message:

Implemented color selection from Settings Dialog.

Changing background color appeared to be much harder than expected, so
this feature was removed for now. It is possible to change background
color of the solution output area. However, this background change
doesn't affect printing and export - there background color always stays
white. Will investigate possible workarounds later...

Closes ticket:13 - All colors should be configurable through Settings Dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ui/settingsdialog.ui

    r7e8e1b444d rc8ed26ddf1  
    618618              <item>
    619619               <widget class="QLabel" name="labelSelectedColor">
    620                 <property name="enabled">
    621                  <bool>false</bool>
    622                 </property>
    623620                <property name="sizePolicy">
    624621                 <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
     
    637634              <item>
    638635               <widget class="QFrame" name="boxSelectedColor">
    639                 <property name="enabled">
    640                  <bool>false</bool>
    641                 </property>
    642636                <property name="sizePolicy">
    643637                 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
     
    665659              <item>
    666660               <widget class="QPushButton" name="buttonSelectedColor">
    667                 <property name="enabled">
    668                  <bool>false</bool>
    669                 </property>
    670661                <property name="cursor">
    671662                 <cursorShape>PointingHandCursor</cursorShape>
     
    682673              <item>
    683674               <widget class="QLabel" name="labelAlternateColor">
    684                 <property name="enabled">
    685                  <bool>false</bool>
    686                 </property>
    687675                <property name="sizePolicy">
    688676                 <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
     
    701689              <item>
    702690               <widget class="QFrame" name="boxAlternateColor">
    703                 <property name="enabled">
    704                  <bool>false</bool>
    705                 </property>
    706691                <property name="sizePolicy">
    707692                 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
     
    729714              <item>
    730715               <widget class="QPushButton" name="buttonAlternateColor">
    731                 <property name="enabled">
    732                  <bool>false</bool>
    733                 </property>
    734716                <property name="cursor">
    735717                 <cursorShape>PointingHandCursor</cursorShape>
     
    746728              <item>
    747729               <widget class="QLabel" name="labelBorderColor">
    748                 <property name="enabled">
    749                  <bool>false</bool>
    750                 </property>
    751730                <property name="sizePolicy">
    752731                 <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
     
    765744              <item>
    766745               <widget class="QFrame" name="boxBorderColor">
    767                 <property name="enabled">
    768                  <bool>false</bool>
    769                 </property>
    770746                <property name="sizePolicy">
    771747                 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
     
    793769              <item>
    794770               <widget class="QPushButton" name="buttonBorderColor">
    795                 <property name="enabled">
    796                  <bool>false</bool>
    797                 </property>
    798771                <property name="cursor">
    799772                 <cursorShape>PointingHandCursor</cursorShape>
     
    801774                <property name="statusTip">
    802775                 <string>Change color of table borders</string>
    803                 </property>
    804                </widget>
    805               </item>
    806              </layout>
    807             </item>
    808             <item>
    809              <layout class="QHBoxLayout" name="_16">
    810               <item>
    811                <widget class="QLabel" name="labelBgColor">
    812                 <property name="enabled">
    813                  <bool>false</bool>
    814                 </property>
    815                 <property name="sizePolicy">
    816                  <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
    817                   <horstretch>0</horstretch>
    818                   <verstretch>0</verstretch>
    819                  </sizepolicy>
    820                 </property>
    821                 <property name="statusTip">
    822                  <string>Background color for solution output</string>
    823                 </property>
    824                 <property name="text">
    825                  <string>Background color:</string>
    826                 </property>
    827                </widget>
    828               </item>
    829               <item>
    830                <widget class="QFrame" name="boxBgColor">
    831                 <property name="enabled">
    832                  <bool>false</bool>
    833                 </property>
    834                 <property name="sizePolicy">
    835                  <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
    836                   <horstretch>0</horstretch>
    837                   <verstretch>0</verstretch>
    838                  </sizepolicy>
    839                 </property>
    840                 <property name="minimumSize">
    841                  <size>
    842                   <width>15</width>
    843                   <height>15</height>
    844                  </size>
    845                 </property>
    846                 <property name="statusTip">
    847                  <string>Background color for solution output</string>
    848                 </property>
    849                 <property name="autoFillBackground">
    850                  <bool>true</bool>
    851                 </property>
    852                 <property name="frameShape">
    853                  <enum>QFrame::Box</enum>
    854                 </property>
    855                </widget>
    856               </item>
    857               <item>
    858                <widget class="QPushButton" name="buttonBgColor">
    859                 <property name="enabled">
    860                  <bool>false</bool>
    861                 </property>
    862                 <property name="cursor">
    863                  <cursorShape>PointingHandCursor</cursorShape>
    864                 </property>
    865                 <property name="statusTip">
    866                  <string>Change background color</string>
    867776                </property>
    868777               </widget>
Note: See TracChangeset for help on using the changeset viewer.