mirror of
				https://github.com/RetroShare/RetroShare.git
				synced 2025-10-31 14:49:14 -04:00 
			
		
		
		
	 cbb3b4587f
			
		
	
	
		cbb3b4587f
		
	
	
	
	
		
			
			Fixed calculation of the unread messages in MessagesDialog. The starred messages was not counted as unread. Set some tree widgets to allColumnsShowFocus. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4285 b45a01b8-16f6-495d-af2f-9b41ad6348cc
		
			
				
	
	
		
			505 lines
		
	
	
	
		
			17 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			505 lines
		
	
	
	
		
			17 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8"?>
 | |
| <ui version="4.0">
 | |
|  <class>MessageWidget</class>
 | |
|  <widget class="QWidget" name="MessageWidget">
 | |
|   <property name="geometry">
 | |
|    <rect>
 | |
|     <x>0</x>
 | |
|     <y>0</y>
 | |
|     <width>698</width>
 | |
|     <height>539</height>
 | |
|    </rect>
 | |
|   </property>
 | |
|   <property name="windowIcon">
 | |
|    <iconset resource="../images.qrc">
 | |
|     <normaloff>:/images/rstray3.png</normaloff>:/images/rstray3.png</iconset>
 | |
|   </property>
 | |
|   <layout class="QGridLayout" name="gridLayout">
 | |
|    <property name="leftMargin">
 | |
|     <number>0</number>
 | |
|    </property>
 | |
|    <property name="topMargin">
 | |
|     <number>2</number>
 | |
|    </property>
 | |
|    <property name="rightMargin">
 | |
|     <number>0</number>
 | |
|    </property>
 | |
|    <property name="bottomMargin">
 | |
|     <number>0</number>
 | |
|    </property>
 | |
|    <item row="0" column="0">
 | |
|     <widget class="QSplitter" name="msgSplitter">
 | |
|      <property name="orientation">
 | |
|       <enum>Qt::Vertical</enum>
 | |
|      </property>
 | |
|      <widget class="QSplitter" name="msgSplitter_2">
 | |
|       <property name="orientation">
 | |
|        <enum>Qt::Vertical</enum>
 | |
|       </property>
 | |
|       <widget class="QWidget" name="layoutWidget">
 | |
|        <layout class="QGridLayout" name="gridLayout_2">
 | |
|         <item row="1" column="0">
 | |
|          <widget class="QTextBrowser" name="msgText">
 | |
|           <property name="sizePolicy">
 | |
|            <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
 | |
|             <horstretch>0</horstretch>
 | |
|             <verstretch>0</verstretch>
 | |
|            </sizepolicy>
 | |
|           </property>
 | |
|           <property name="openExternalLinks">
 | |
|            <bool>true</bool>
 | |
|           </property>
 | |
|           <property name="openLinks">
 | |
|            <bool>true</bool>
 | |
|           </property>
 | |
|          </widget>
 | |
|         </item>
 | |
|         <item row="2" column="0">
 | |
|          <layout class="QHBoxLayout" name="_2">
 | |
|           <item>
 | |
|            <layout class="QGridLayout" name="_3">
 | |
|             <property name="margin">
 | |
|              <number>0</number>
 | |
|             </property>
 | |
|             <property name="spacing">
 | |
|              <number>6</number>
 | |
|             </property>
 | |
|             <item row="0" column="2">
 | |
|              <widget class="QLabel" name="label_6">
 | |
|               <property name="text">
 | |
|                <string/>
 | |
|               </property>
 | |
|               <property name="pixmap">
 | |
|                <pixmap resource="../images.qrc">:/images/attachment.png</pixmap>
 | |
|               </property>
 | |
|              </widget>
 | |
|             </item>
 | |
|             <item row="0" column="3">
 | |
|              <widget class="QLabel" name="label_2">
 | |
|               <property name="text">
 | |
|                <string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
 | |
| p, li { white-space: pre-wrap; }
 | |
| </style></head><body style=" font-family:'Arial'; font-size:8pt; font-weight:400; font-style:normal; text-decoration:none;">
 | |
| <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt; font-weight:600;">Recommended Files</span></p></body></html></string>
 | |
|               </property>
 | |
|              </widget>
 | |
|             </item>
 | |
|             <item row="0" column="4">
 | |
|              <widget class="QLabel" name="filesText">
 | |
|               <property name="font">
 | |
|                <font>
 | |
|                 <pointsize>10</pointsize>
 | |
|                 <italic>true</italic>
 | |
|                </font>
 | |
|               </property>
 | |
|               <property name="text">
 | |
|                <string/>
 | |
|               </property>
 | |
|              </widget>
 | |
|             </item>
 | |
|            </layout>
 | |
|           </item>
 | |
|           <item>
 | |
|            <spacer>
 | |
|             <property name="orientation">
 | |
|              <enum>Qt::Horizontal</enum>
 | |
|             </property>
 | |
|             <property name="sizeHint" stdset="0">
 | |
|              <size>
 | |
|               <width>351</width>
 | |
|               <height>20</height>
 | |
|              </size>
 | |
|             </property>
 | |
|            </spacer>
 | |
|           </item>
 | |
|           <item>
 | |
|            <widget class="QPushButton" name="downloadButton">
 | |
|             <property name="focusPolicy">
 | |
|              <enum>Qt::NoFocus</enum>
 | |
|             </property>
 | |
|             <property name="toolTip">
 | |
|              <string>Download all Recommended Files</string>
 | |
|             </property>
 | |
|             <property name="icon">
 | |
|              <iconset resource="../images.qrc">
 | |
|               <normaloff>:/images/down.png</normaloff>:/images/down.png</iconset>
 | |
|             </property>
 | |
|            </widget>
 | |
|           </item>
 | |
|           <item>
 | |
|            <widget class="QPushButton" name="expandFilesButton">
 | |
|             <property name="focusPolicy">
 | |
|              <enum>Qt::NoFocus</enum>
 | |
|             </property>
 | |
|             <property name="text">
 | |
|              <string/>
 | |
|             </property>
 | |
|             <property name="icon">
 | |
|              <iconset resource="../images.qrc">
 | |
|               <normaloff>:/images/edit_remove24.png</normaloff>:/images/edit_remove24.png</iconset>
 | |
|             </property>
 | |
|             <property name="checkable">
 | |
|              <bool>true</bool>
 | |
|             </property>
 | |
|             <property name="checked">
 | |
|              <bool>true</bool>
 | |
|             </property>
 | |
|            </widget>
 | |
|           </item>
 | |
|          </layout>
 | |
|         </item>
 | |
|         <item row="0" column="0">
 | |
|          <layout class="QHBoxLayout" name="_4">
 | |
|           <property name="leftMargin">
 | |
|            <number>6</number>
 | |
|           </property>
 | |
|           <property name="topMargin">
 | |
|            <number>0</number>
 | |
|           </property>
 | |
|           <property name="rightMargin">
 | |
|            <number>6</number>
 | |
|           </property>
 | |
|           <property name="bottomMargin">
 | |
|            <number>0</number>
 | |
|           </property>
 | |
|           <item>
 | |
|            <layout class="QGridLayout" name="_5">
 | |
|             <property name="horizontalSpacing">
 | |
|              <number>6</number>
 | |
|             </property>
 | |
|             <property name="verticalSpacing">
 | |
|              <number>3</number>
 | |
|             </property>
 | |
|             <item row="0" column="0">
 | |
|              <widget class="QLabel" name="subjectlabel">
 | |
|               <property name="sizePolicy">
 | |
|                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
 | |
|                 <horstretch>0</horstretch>
 | |
|                 <verstretch>0</verstretch>
 | |
|                </sizepolicy>
 | |
|               </property>
 | |
|               <property name="font">
 | |
|                <font>
 | |
|                 <pointsize>9</pointsize>
 | |
|                 <weight>50</weight>
 | |
|                 <bold>false</bold>
 | |
|                </font>
 | |
|               </property>
 | |
|               <property name="text">
 | |
|                <string>Subject:</string>
 | |
|               </property>
 | |
|               <property name="alignment">
 | |
|                <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 | |
|               </property>
 | |
|              </widget>
 | |
|             </item>
 | |
|             <item row="1" column="0">
 | |
|              <widget class="QLabel" name="fromlabel">
 | |
|               <property name="sizePolicy">
 | |
|                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
 | |
|                 <horstretch>0</horstretch>
 | |
|                 <verstretch>0</verstretch>
 | |
|                </sizepolicy>
 | |
|               </property>
 | |
|               <property name="font">
 | |
|                <font>
 | |
|                 <pointsize>9</pointsize>
 | |
|                 <weight>50</weight>
 | |
|                 <bold>false</bold>
 | |
|                </font>
 | |
|               </property>
 | |
|               <property name="text">
 | |
|                <string>From:</string>
 | |
|               </property>
 | |
|               <property name="alignment">
 | |
|                <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 | |
|               </property>
 | |
|              </widget>
 | |
|             </item>
 | |
|             <item row="1" column="2" colspan="2">
 | |
|              <widget class="QLabel" name="fromText">
 | |
|               <property name="sizePolicy">
 | |
|                <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
 | |
|                 <horstretch>2</horstretch>
 | |
|                 <verstretch>0</verstretch>
 | |
|                </sizepolicy>
 | |
|               </property>
 | |
|               <property name="minimumSize">
 | |
|                <size>
 | |
|                 <width>0</width>
 | |
|                 <height>0</height>
 | |
|                </size>
 | |
|               </property>
 | |
|               <property name="maximumSize">
 | |
|                <size>
 | |
|                 <width>16777215</width>
 | |
|                 <height>16777215</height>
 | |
|                </size>
 | |
|               </property>
 | |
|               <property name="font">
 | |
|                <font>
 | |
|                 <pointsize>9</pointsize>
 | |
|                </font>
 | |
|               </property>
 | |
|               <property name="scaledContents">
 | |
|                <bool>true</bool>
 | |
|               </property>
 | |
|               <property name="openExternalLinks">
 | |
|                <bool>true</bool>
 | |
|               </property>
 | |
|              </widget>
 | |
|             </item>
 | |
|             <item row="2" column="0">
 | |
|              <widget class="QLabel" name="tolabel">
 | |
|               <property name="sizePolicy">
 | |
|                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
 | |
|                 <horstretch>0</horstretch>
 | |
|                 <verstretch>0</verstretch>
 | |
|                </sizepolicy>
 | |
|               </property>
 | |
|               <property name="font">
 | |
|                <font>
 | |
|                 <pointsize>9</pointsize>
 | |
|                 <weight>50</weight>
 | |
|                 <bold>false</bold>
 | |
|                </font>
 | |
|               </property>
 | |
|               <property name="text">
 | |
|                <string>To:</string>
 | |
|               </property>
 | |
|               <property name="alignment">
 | |
|                <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 | |
|               </property>
 | |
|              </widget>
 | |
|             </item>
 | |
|             <item row="2" column="2" colspan="2">
 | |
|              <widget class="QLabel" name="toText">
 | |
|               <property name="wordWrap">
 | |
|                <bool>true</bool>
 | |
|               </property>
 | |
|               <property name="openExternalLinks">
 | |
|                <bool>true</bool>
 | |
|               </property>
 | |
|              </widget>
 | |
|             </item>
 | |
|             <item row="3" column="0">
 | |
|              <widget class="QLabel" name="cclabel">
 | |
|               <property name="sizePolicy">
 | |
|                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
 | |
|                 <horstretch>0</horstretch>
 | |
|                 <verstretch>0</verstretch>
 | |
|                </sizepolicy>
 | |
|               </property>
 | |
|               <property name="font">
 | |
|                <font>
 | |
|                 <pointsize>9</pointsize>
 | |
|                 <weight>50</weight>
 | |
|                 <bold>false</bold>
 | |
|                </font>
 | |
|               </property>
 | |
|               <property name="text">
 | |
|                <string>Cc:</string>
 | |
|               </property>
 | |
|               <property name="alignment">
 | |
|                <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 | |
|               </property>
 | |
|               <property name="wordWrap">
 | |
|                <bool>false</bool>
 | |
|               </property>
 | |
|              </widget>
 | |
|             </item>
 | |
|             <item row="4" column="0">
 | |
|              <widget class="QLabel" name="bcclabel">
 | |
|               <property name="sizePolicy">
 | |
|                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
 | |
|                 <horstretch>0</horstretch>
 | |
|                 <verstretch>0</verstretch>
 | |
|                </sizepolicy>
 | |
|               </property>
 | |
|               <property name="font">
 | |
|                <font>
 | |
|                 <pointsize>9</pointsize>
 | |
|                 <weight>50</weight>
 | |
|                 <bold>false</bold>
 | |
|                </font>
 | |
|               </property>
 | |
|               <property name="text">
 | |
|                <string>Bcc:</string>
 | |
|               </property>
 | |
|               <property name="alignment">
 | |
|                <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 | |
|               </property>
 | |
|              </widget>
 | |
|             </item>
 | |
|             <item row="3" column="2" colspan="2">
 | |
|              <widget class="QLabel" name="ccText">
 | |
|               <property name="wordWrap">
 | |
|                <bool>true</bool>
 | |
|               </property>
 | |
|               <property name="openExternalLinks">
 | |
|                <bool>true</bool>
 | |
|               </property>
 | |
|              </widget>
 | |
|             </item>
 | |
|             <item row="4" column="2" colspan="2">
 | |
|              <widget class="QLabel" name="bccText">
 | |
|               <property name="wordWrap">
 | |
|                <bool>true</bool>
 | |
|               </property>
 | |
|               <property name="openExternalLinks">
 | |
|                <bool>true</bool>
 | |
|               </property>
 | |
|              </widget>
 | |
|             </item>
 | |
|             <item row="5" column="0">
 | |
|              <widget class="QLabel" name="tagsLabel">
 | |
|               <property name="sizePolicy">
 | |
|                <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
 | |
|                 <horstretch>0</horstretch>
 | |
|                 <verstretch>0</verstretch>
 | |
|                </sizepolicy>
 | |
|               </property>
 | |
|               <property name="font">
 | |
|                <font>
 | |
|                 <pointsize>9</pointsize>
 | |
|                 <weight>50</weight>
 | |
|                 <bold>false</bold>
 | |
|                </font>
 | |
|               </property>
 | |
|               <property name="text">
 | |
|                <string>Tags:</string>
 | |
|               </property>
 | |
|               <property name="alignment">
 | |
|                <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 | |
|               </property>
 | |
|              </widget>
 | |
|             </item>
 | |
|             <item row="5" column="2" colspan="2">
 | |
|              <layout class="QHBoxLayout" name="tagLayout"/>
 | |
|             </item>
 | |
|             <item row="0" column="2" colspan="2">
 | |
|              <layout class="QHBoxLayout" name="horizontalLayout_3">
 | |
|               <item>
 | |
|                <widget class="QLabel" name="subjectText">
 | |
|                 <property name="sizePolicy">
 | |
|                  <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
 | |
|                   <horstretch>0</horstretch>
 | |
|                   <verstretch>0</verstretch>
 | |
|                  </sizepolicy>
 | |
|                 </property>
 | |
|                 <property name="font">
 | |
|                  <font>
 | |
|                   <pointsize>9</pointsize>
 | |
|                  </font>
 | |
|                 </property>
 | |
|                 <property name="wordWrap">
 | |
|                  <bool>true</bool>
 | |
|                 </property>
 | |
|                 <property name="textInteractionFlags">
 | |
|                  <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
 | |
|                 </property>
 | |
|                </widget>
 | |
|               </item>
 | |
|               <item>
 | |
|                <widget class="QLabel" name="dateText">
 | |
|                 <property name="sizePolicy">
 | |
|                  <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
 | |
|                   <horstretch>0</horstretch>
 | |
|                   <verstretch>0</verstretch>
 | |
|                  </sizepolicy>
 | |
|                 </property>
 | |
|                 <property name="font">
 | |
|                  <font>
 | |
|                   <pointsize>9</pointsize>
 | |
|                  </font>
 | |
|                 </property>
 | |
|                 <property name="layoutDirection">
 | |
|                  <enum>Qt::LeftToRight</enum>
 | |
|                 </property>
 | |
|                 <property name="text">
 | |
|                  <string notr="true">Date</string>
 | |
|                 </property>
 | |
|                 <property name="alignment">
 | |
|                  <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
 | |
|                 </property>
 | |
|                 <property name="textInteractionFlags">
 | |
|                  <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
 | |
|                 </property>
 | |
|                </widget>
 | |
|               </item>
 | |
|              </layout>
 | |
|             </item>
 | |
|            </layout>
 | |
|           </item>
 | |
|          </layout>
 | |
|         </item>
 | |
|        </layout>
 | |
|       </widget>
 | |
|      </widget>
 | |
|      <widget class="QTreeWidget" name="msgList">
 | |
|       <property name="font">
 | |
|        <font>
 | |
|         <pointsize>9</pointsize>
 | |
|        </font>
 | |
|       </property>
 | |
|       <property name="contextMenuPolicy">
 | |
|        <enum>Qt::CustomContextMenu</enum>
 | |
|       </property>
 | |
|       <property name="sortingEnabled">
 | |
|        <bool>true</bool>
 | |
|       </property>
 | |
|       <property name="allColumnsShowFocus">
 | |
|        <bool>true</bool>
 | |
|       </property>
 | |
|       <column>
 | |
|        <property name="text">
 | |
|         <string>File Name</string>
 | |
|        </property>
 | |
|       </column>
 | |
|       <column>
 | |
|        <property name="text">
 | |
|         <string>Size</string>
 | |
|        </property>
 | |
|       </column>
 | |
|       <column>
 | |
|        <property name="text">
 | |
|         <string>Hash</string>
 | |
|        </property>
 | |
|       </column>
 | |
|      </widget>
 | |
|     </widget>
 | |
|    </item>
 | |
|   </layout>
 | |
|   <action name="actionPrint">
 | |
|    <property name="text">
 | |
|     <string>Print</string>
 | |
|    </property>
 | |
|   </action>
 | |
|   <action name="actionPrint_Preview">
 | |
|    <property name="text">
 | |
|     <string>Print Preview</string>
 | |
|    </property>
 | |
|   </action>
 | |
|  </widget>
 | |
|  <resources>
 | |
|   <include location="../images.qrc"/>
 | |
|  </resources>
 | |
|  <connections>
 | |
|   <connection>
 | |
|    <sender>expandFilesButton</sender>
 | |
|    <signal>clicked(bool)</signal>
 | |
|    <receiver>msgList</receiver>
 | |
|    <slot>setVisible(bool)</slot>
 | |
|    <hints>
 | |
|     <hint type="sourcelabel">
 | |
|      <x>672</x>
 | |
|      <y>334</y>
 | |
|     </hint>
 | |
|     <hint type="destinationlabel">
 | |
|      <x>348</x>
 | |
|      <y>432</y>
 | |
|     </hint>
 | |
|    </hints>
 | |
|   </connection>
 | |
|  </connections>
 | |
| </ui>
 |