some thoughts on detecting condition for enablining or showing the button for encryption in chat window
This commit is contained in:
parent
21b40a9ccb
commit
283e9ebc4d
11 changed files with 269 additions and 17 deletions
|
@ -1,21 +1,33 @@
|
|||
target_sources(squawk PRIVATE
|
||||
set(SOURCE_FILES
|
||||
chat.cpp
|
||||
chat.h
|
||||
conversation.cpp
|
||||
conversation.h
|
||||
conversation.ui
|
||||
joinconference.cpp
|
||||
joinconference.h
|
||||
joinconference.ui
|
||||
newcontact.cpp
|
||||
newcontact.h
|
||||
newcontact.ui
|
||||
room.cpp
|
||||
room.h
|
||||
about.cpp
|
||||
about.h
|
||||
)
|
||||
|
||||
set(UI_FILES
|
||||
conversation.ui
|
||||
joinconference.ui
|
||||
newcontact.ui
|
||||
about.ui
|
||||
)
|
||||
)
|
||||
|
||||
set(HEADER_FILES
|
||||
chat.h
|
||||
conversation.h
|
||||
joinconference.h
|
||||
newcontact.h
|
||||
room.h
|
||||
about.h
|
||||
)
|
||||
|
||||
target_sources(squawk PRIVATE
|
||||
${SOURCE_FILES}
|
||||
${UI_FILES}
|
||||
${HEADER_FILES}
|
||||
)
|
||||
|
||||
add_subdirectory(info)
|
||||
add_subdirectory(messageline)
|
||||
|
|
|
@ -100,6 +100,8 @@ Conversation::Conversation(bool muc, Models::Account* acc, Models::Element* el,
|
|||
connect(m_ui->currentActionBadge, &Badge::close, this, &Conversation::clear);
|
||||
m_ui->currentActionBadge->setVisible(false);
|
||||
|
||||
m_ui->encryptionButton->setVisible(false);
|
||||
|
||||
//line->setAutoFillBackground(false);
|
||||
//if (testAttribute(Qt::WA_TranslucentBackground)) {
|
||||
//m_ui->scrollArea->setAutoFillBackground(false);
|
||||
|
|
|
@ -315,6 +315,31 @@
|
|||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="encryptionButton">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="unlock"/>
|
||||
</property>
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="default">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="flat">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="attachButton">
|
||||
<property name="text">
|
||||
|
|
|
@ -1,10 +1,18 @@
|
|||
target_sources(squawk PRIVATE
|
||||
set(SOURCE_FILES
|
||||
messagedelegate.cpp
|
||||
messagedelegate.h
|
||||
preview.cpp
|
||||
preview.h
|
||||
messagefeed.cpp
|
||||
messagefeed.h
|
||||
feedview.cpp
|
||||
)
|
||||
|
||||
set(HEADER_FILES
|
||||
messagedelegate.h
|
||||
preview.h
|
||||
messagefeed.h
|
||||
feedview.h
|
||||
)
|
||||
)
|
||||
|
||||
target_sources(squawk PRIVATE
|
||||
${SOURCE_FILES}
|
||||
${HEADER_FILES}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue