mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
InputBar: run clang-format
This commit is contained in:
parent
a9d8059fb2
commit
a01bc14db6
2 changed files with 29 additions and 27 deletions
|
@ -170,7 +170,10 @@ InputBar::setText(const QString& newText)
|
|||
emit textChanged(newText);
|
||||
}
|
||||
void
|
||||
InputBar::updateState(int selectionStart_, int selectionEnd_, int cursorPosition_, const QString& text_)
|
||||
InputBar::updateState(int selectionStart_,
|
||||
int selectionEnd_,
|
||||
int cursorPosition_,
|
||||
const QString &text_)
|
||||
{
|
||||
if (text_.isEmpty())
|
||||
stopTyping();
|
||||
|
@ -591,13 +594,13 @@ InputBar::command(const QString& command, QString args)
|
|||
.toStdString();
|
||||
member.membership = mtx::events::state::Membership::Join;
|
||||
|
||||
http::client()->send_state_event(room->roomId().toStdString(),
|
||||
http::client()->send_state_event(
|
||||
room->roomId().toStdString(),
|
||||
http::client()->user_id().to_string(),
|
||||
member,
|
||||
[](const mtx::responses::EventId &, mtx::http::RequestErr err) {
|
||||
if (err)
|
||||
nhlog::net()->error(
|
||||
"Failed to set room displayname: {}",
|
||||
nhlog::net()->error("Failed to set room displayname: {}",
|
||||
err->matrix_error.error);
|
||||
});
|
||||
} else if (command == "shrug") {
|
||||
|
@ -652,8 +655,7 @@ InputBar::command(const QString& command, QString args)
|
|||
void
|
||||
InputBar::showPreview(const QMimeData &source, const QString &path, const QStringList &formats)
|
||||
{
|
||||
auto *previewDialog_ =
|
||||
new dialogs::PreviewUploadOverlay(ChatPage::instance());
|
||||
auto *previewDialog_ = new dialogs::PreviewUploadOverlay(ChatPage::instance());
|
||||
previewDialog_->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
// Force SVG to _not_ be handled as an image, but as raw data
|
||||
|
|
Loading…
Reference in a new issue