Browse Source

set icon for emoji button

pull/170/head
DenioD 4 years ago
parent
commit
ef2d9354fd
  1. 2
      src/mainwindow.cpp
  2. 4
      src/mainwindow.h
  3. 60
      src/mainwindow.ui

2
src/mainwindow.cpp

@ -2617,7 +2617,7 @@ void MainWindow::on_givemeZaddr_clicked()
});
}
void MainWindow::emojiButton_clicked()
void MainWindow::on_emojiButton_clicked()
{
QDialog emojiDialog(this);

4
src/mainwindow.h

@ -111,9 +111,7 @@ private slots:
void on_givemeZaddr_clicked();
// void on_pushButton_clicked();
void emojiButton_clicked();
void on_emojiButton_clicked();
private:
bool fileExists(QString path);

60
src/mainwindow.ui

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>1274</width>
<width>1282</width>
<height>779</height>
</rect>
</property>
@ -428,7 +428,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>1226</width>
<width>1234</width>
<height>509</height>
</rect>
</property>
@ -1727,66 +1727,72 @@
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="sendChatButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="baseSize">
<widget class="QPushButton" name="emojiButton">
<property name="minimumSize">
<size>
<width>100</width>
<width>20</width>
<height>0</height>
</size>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normalon>:/icons/res/sendBlack.png</normalon>
<normalon>:/emoji/res/emoji/emoji1.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>50</width>
<height>49</height>
<width>17</width>
<height>17</height>
</size>
</property>
<property name="default">
<bool>false</bool>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="minimumSize">
<widget class="QPushButton" name="sendChatButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>20</width>
<width>16777215</width>
<height>50</height>
</size>
</property>
<property name="baseSize">
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset>
<normalon>:/emoji/res/emoji/emoji1.png</normalon>
<normalon>:/icons/res/sendBlack.png</normalon>
</iconset>
</property>
<property name="iconSize">
<size>
<width>17</width>
<height>17</height>
<width>50</width>
<height>49</height>
</size>
</property>
<property name="default">
<bool>false</bool>
</property>
<property name="flat">
<bool>true</bool>
</property>
@ -1828,7 +1834,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>1274</width>
<width>1282</width>
<height>22</height>
</rect>
</property>

Loading…
Cancel
Save