Commit a83d0c2a authored by Radek Polak's avatar Radek Polak

callscreen - hide end call button to avoid it's unwanted press

parent 95694626
......@@ -1642,6 +1642,14 @@ void ThemedCallScreenView::endCall()
emit hangupCall();
}
/*!
* \internal
*/
void ThemedCallScreenView::showEndCall()
{
setItemActive("endcall", true);
}
/*!
\internal
*/
......@@ -1833,7 +1841,7 @@ void ThemedCallScreenView::muteRingSelected()
void ThemedCallScreenView::callConnected(const QPhoneCall &)
{
setItemActive("answer", false);
setItemActive("endcall", true);
QTimer::singleShot(2000, this, SLOT(showEndCall())); // setItemActive("endcall", true);
setItemActive("resume", false);
setItemActive("sendbusy", false);
setItemActive("hold", true);
......
......@@ -126,6 +126,7 @@ private slots:
void rejectModalDialog();
void initializeMouseControlDialog();
void endCall();
void showEndCall();
private:
int activeCallCount() const { return activeCount; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment