Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
savoirfairelinux
jami-client-windows
Commits
bd0baf8b
Commit
bd0baf8b
authored
Jun 22, 2015
by
Edric Milaret
Committed by
Stepan Salenikovich
Jun 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
im: focus message input on show
Refs #75258 Change-Id: I481793e236dec64dad7fe788d129ffd25711e245
parent
01f23849
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
instantmessagingwidget.cpp
instantmessagingwidget.cpp
+6
-0
instantmessagingwidget.h
instantmessagingwidget.h
+3
-2
No files found.
instantmessagingwidget.cpp
View file @
bd0baf8b
...
...
@@ -118,6 +118,12 @@ InstantMessagingWidget::keyPressEvent(QKeyEvent *event)
}
}
void
InstantMessagingWidget
::
showEvent
(
QShowEvent
*
event
)
{
ui
->
messageInput
->
setFocus
();
}
void
InstantMessagingWidget
::
copyToClipboard
()
{
...
...
instantmessagingwidget.h
View file @
bd0baf8b
...
...
@@ -32,7 +32,7 @@ namespace Ui {
class
InstantMessagingWidget
;
}
class
InstantMessagingWidget
:
public
QWidget
class
InstantMessagingWidget
final
:
public
QWidget
{
Q_OBJECT
...
...
@@ -42,7 +42,8 @@ public:
void
setMediaText
(
Call
*
call
);
protected:
virtual
void
keyPressEvent
(
QKeyEvent
*
event
);
virtual
void
keyPressEvent
(
QKeyEvent
*
event
)
override
;
virtual
void
showEvent
(
QShowEvent
*
event
)
override
;
//UI SLOTS
private
slots
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment