Changeset 274

Show
Ignore:
Timestamp:
02/12/06 19:58:13 (3 years ago)
Author:
hipplej
Message:

QDir::rootPath() returns a string that ends with '/' (On Win32 at least) so we don't need to append a string that begins with '/'. The configuration dialog looks gargantuan on my tiny Tablet screen, but luckily we can use some sizer trickery to make it so that a hard coded minimum form size is unnecessary (in this case at least).

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/config/vidaliasettings.cpp

    r271 r274  
    5050/* Default Tor Settings */ 
    5151#if defined(Q_OS_WIN32) 
    52 #define DEFAULT_TOR_PATH       (QDir::rootPath() + "\\Program Files\\Tor") 
     52#define DEFAULT_TOR_PATH       (QDir::rootPath() + "Program Files\\Tor") 
    5353#elif defined(Q_OS_MACX) 
    5454#define DEFAULT_TOR_PATH       "/usr/bin" 
     
    6969 
    7070#if defined(Q_OS_WIN32) 
    71 #define DEFAULT_LOG_FILE       (QDir::rootPath() + "\\Program Files\\Tor\\tor.log") 
     71#define DEFAULT_LOG_FILE       (QDir::rootPath() + "Program Files\\Tor\\tor.log") 
    7272#else 
    7373#define DEFAULT_LOG_FILE       (QDir::homePath() + "/.tor/tor.log") 
  • trunk/src/gui/configdialog/configdialog.ui

    r267 r274  
    99    <x>0</x> 
    1010    <y>0</y> 
    11     <width>650</width> 
    12     <height>500</height> 
     11    <width>581</width> 
     12    <height>388</height> 
    1313   </rect> 
    14   </property> 
    15   <property name="minimumSize" > 
    16    <size> 
    17     <width>650</width> 
    18     <height>500</height> 
    19    </size> 
    2014  </property> 
    2115  <property name="palette" > 
     
    302296  </property> 
    303297  <property name="windowIcon" > 
    304    <iconset/> 
     298   <iconset resource="..\res\vidalia.qrc" >:/images/tor_logo16.png</iconset> 
    305299  </property> 
    306300  <property name="sizeGripEnabled" > 
     
    377371      </property> 
    378372      <property name="icon" > 
    379        <iconset resource="..\res\vidalia.qrc">:/images/config_general.png</iconset> 
     373       <iconset resource="..\res\vidalia.qrc" >:/images/config_general.png</iconset> 
    380374      </property> 
    381375     </item> 
     
    385379      </property> 
    386380      <property name="icon" > 
    387        <iconset resource="..\res\vidalia.qrc">:/images/config_advanced.png</iconset> 
     381       <iconset resource="..\res\vidalia.qrc" >:/images/config_advanced.png</iconset> 
    388382      </property> 
    389383     </item> 
     
    554548           <layout class="QVBoxLayout" > 
    555549            <property name="margin" > 
    556              <number>4</number> 
     550             <number>9</number> 
    557551            </property> 
    558552            <property name="spacing" > 
    559              <number>3</number> 
     553             <number>9</number> 
    560554            </property> 
    561555            <item> 
    562              <widget class="QLabel" name="lblTorConfig" > 
    563               <property name="font" > 
    564                <font> 
    565                 <family>Arial</family> 
    566                 <pointsize>11</pointsize> 
    567                 <weight>50</weight> 
    568                 <italic>false</italic> 
    569                 <bold>false</bold> 
    570                 <underline>false</underline> 
    571                 <strikeout>false</strikeout> 
    572                </font> 
     556             <widget class="QLabel" name="lblConfigFile" > 
     557              <property name="minimumSize" > 
     558               <size> 
     559                <width>370</width> 
     560                <height>30</height> 
     561               </size> 
     562              </property> 
     563              <property name="contextMenuPolicy" > 
     564               <enum>Qt::NoContextMenu</enum> 
    573565              </property> 
    574566              <property name="text" > 
     
    641633            </property> 
    642634            <property name="spacing" > 
    643              <number>6</number> 
     635             <number>9</number> 
    644636            </property> 
    645637            <item> 
    646              <widget class="QLabel" name="label" > 
    647               <property name="font" > 
    648                <font> 
    649                 <family>Arial</family> 
    650                 <pointsize>11</pointsize> 
    651                 <weight>50</weight> 
    652                 <italic>false</italic> 
    653                 <bold>false</bold> 
    654                 <underline>false</underline> 
    655                 <strikeout>false</strikeout> 
    656                </font> 
     638             <widget class="QLabel" name="lblPortLabel" > 
     639              <property name="minimumSize" > 
     640               <size> 
     641                <width>370</width> 
     642                <height>65</height> 
     643               </size> 
     644              </property> 
     645              <property name="contextMenuPolicy" > 
     646               <enum>Qt::NoContextMenu</enum> 
    657647              </property> 
    658648              <property name="text" > 
     
    674664              <item> 
    675665               <widget class="QLineEdit" name="lineControlPort" > 
     666                <property name="sizePolicy" > 
     667                 <sizepolicy> 
     668                  <hsizetype>0</hsizetype> 
     669                  <vsizetype>0</vsizetype> 
     670                  <horstretch>0</horstretch> 
     671                  <verstretch>0</verstretch> 
     672                 </sizepolicy> 
     673                </property> 
    676674                <property name="maximumSize" > 
    677675                 <size> 
    678                   <width>50</width> 
    679                   <height>50</height> 
     676                  <width>55</width> 
     677                  <height>16777215</height> 
    680678                 </size> 
    681679                </property> 
    682                 <property name="maxLength" > 
    683                  <number>5</number> 
    684                 </property> 
    685                 <property name="alignment" > 
    686                  <set>Qt::AlignRight</set> 
     680                <property name="contextMenuPolicy" > 
     681                 <enum>Qt::NoContextMenu</enum> 
     682                </property> 
     683                <property name="text" > 
     684                 <string>9051</string> 
    687685                </property> 
    688686               </widget> 
     
    695693                <property name="sizeHint" > 
    696694                 <size> 
    697                   <width>40</width> 
     695                  <width>221</width> 
    698696                  <height>20</height> 
    699697                 </size>