Skip to content
Snippets Groups Projects
  • inso's avatar
    66c0adeb
    Display members in table · 66c0adeb
    inso authored
    Show members in table with columns for pubkey, uid, join date and expiration
    Display members who will expire in 15 days as red
    66c0adeb
    History
    Display members in table
    inso authored
    Show members in table with columns for pubkey, uid, join date and expiration
    Display members who will expire in 15 days as red
community_tab.ui 4.37 KiB
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>CommunityTabWidget</class>
 <widget class="QWidget" name="CommunityTabWidget">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>421</width>
    <height>369</height>
   </rect>
  </property>
  <property name="contextMenuPolicy">
   <enum>Qt::DefaultContextMenu</enum>
  </property>
  <property name="windowTitle">
   <string>communityTabWidget</string>
  </property>
  <layout class="QHBoxLayout" name="horizontalLayout">
   <item>
    <widget class="QTabWidget" name="tabs_information">
     <property name="currentIndex">
      <number>0</number>
     </property>
     <property name="iconSize">
      <size>
       <width>20</width>
       <height>20</height>
      </size>
     </property>
     <property name="elideMode">
      <enum>Qt::ElideNone</enum>
     </property>
     <widget class="QWidget" name="tab_members">
      <attribute name="icon">
       <iconset resource="../icons/icons.qrc">
        <normaloff>:/icons/members_icon</normaloff>:/icons/members_icon</iconset>
      </attribute>
      <attribute name="title">
       <string>Members</string>
      </attribute>
      <layout class="QVBoxLayout" name="verticalLayout">
       <item>
        <layout class="QVBoxLayout" name="verticalLayout_6">
         <item>
          <widget class="QTableView" name="table_community_members">
           <property name="contextMenuPolicy">
            <enum>Qt::CustomContextMenu</enum>
           </property>
           <property name="sortingEnabled">
            <bool>true</bool>
           </property>
           <attribute name="horizontalHeaderShowSortIndicator" stdset="0">
            <bool>true</bool>
           </attribute>
           <attribute name="horizontalHeaderStretchLastSection">
            <bool>true</bool>
           </attribute>
           <attribute name="verticalHeaderVisible">
            <bool>false</bool>
           </attribute>
          </widget>
         </item>
         <item>
          <layout class="QHBoxLayout" name="horizontalLayout_2">
           <property name="leftMargin">
            <number>0</number>
           </property>
           <property name="topMargin">
            <number>5</number>
           </property>
           <item>
            <spacer name="horizontalSpacer">
             <property name="orientation">
              <enum>Qt::Horizontal</enum>
             </property>
             <property name="sizeHint" stdset="0">
              <size>
               <width>40</width>
               <height>20</height>
              </size>
             </property>
            </spacer>
           </item>
           <item>
            <widget class="QLabel" name="label_quality">
             <property name="text">
              <string>Quality : </string>
             </property>
            </widget>
           </item>
           <item>
            <widget class="QPushButton" name="button_membership">
             <property name="text">
              <string>Renew membership</string>
             </property>
            </widget>
           </item>
           <item>
            <widget class="QPushButton" name="button_leaving">
             <property name="text">
              <string>Send leaving demand</string>
             </property>
            </widget>
           </item>
          </layout>
         </item>
        </layout>
       </item>
      </layout>
     </widget>
    </widget>
   </item>
  </layout>
 </widget>
 <resources>
  <include location="../icons/icons.qrc"/>
 </resources>
 <connections>
  <connection>
   <sender>button_membership</sender>
   <signal>clicked()</signal>
   <receiver>CommunityTabWidget</receiver>
   <slot>send_membership_demand()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>198</x>
     <y>335</y>
    </hint>
    <hint type="destinationlabel">
     <x>199</x>
     <y>149</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>button_leaving</sender>
   <signal>clicked()</signal>
   <receiver>CommunityTabWidget</receiver>
   <slot>send_membership_leaving()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>338</x>
     <y>335</y>
    </hint>
    <hint type="destinationlabel">
     <x>199</x>
     <y>149</y>
    </hint>
   </hints>
  </connection>
 </connections>
 <slots>
  <slot>member_context_menu(QPoint)</slot>
  <slot>send_membership_demand()</slot>
  <slot>send_membership_leaving()</slot>
 </slots>
</ui>