fix whitespace

This commit is contained in:
Akash Mozumdar 2018-12-28 12:14:56 -05:00
parent 54c1b508d5
commit e8b378da75
5 changed files with 10 additions and 11 deletions

View File

@ -117,8 +117,8 @@ void ExtenWindow::Add(QFileInfo extenFile)
Sync(); Sync();
} }
bool ExtenWindow::eventFilter(QObject* target, QEvent* event) bool ExtenWindow::eventFilter(QObject* target, QEvent* event)
{ {
// See https://stackoverflow.com/questions/1224432/how-do-i-respond-to-an-internal-drag-and-drop-operation-using-a-qlistwidget/1528215 // See https://stackoverflow.com/questions/1224432/how-do-i-respond-to-an-internal-drag-and-drop-operation-using-a-qlistwidget/1528215
if (event->type() == QEvent::ChildRemoved) if (event->type() == QEvent::ChildRemoved)
{ {
@ -127,7 +127,7 @@ bool ExtenWindow::eventFilter(QObject* target, QEvent* event)
Reorder(extenNames); Reorder(extenNames);
Sync(); Sync();
} }
return false; return false;
} }
void ExtenWindow::keyPressEvent(QKeyEvent* event) void ExtenWindow::keyPressEvent(QKeyEvent* event)
@ -144,7 +144,7 @@ void ExtenWindow::dragEnterEvent(QDragEnterEvent* event)
event->acceptProposedAction(); event->acceptProposedAction();
} }
void ExtenWindow::dropEvent(QDropEvent* event) void ExtenWindow::dropEvent(QDropEvent* event)
{ {
for (auto file : event->mimeData()->urls()) Add(file.toLocalFile()); for (auto file : event->mimeData()->urls()) Add(file.toLocalFile());
} }

View File

@ -204,8 +204,8 @@ namespace Host
return textThreadsByParams->at(tp); return textThreadsByParams->at(tp);
} }
void AddConsoleOutput(std::wstring text) void AddConsoleOutput(std::wstring text)
{ {
GetThread(CONSOLE)->PushSentence(text); GetThread(CONSOLE)->PushSentence(text);
} }
} }

View File

@ -9,5 +9,5 @@ namespace Util
std::optional<std::wstring> GetClipboardText(); std::optional<std::wstring> GetClipboardText();
std::optional<std::wstring> StringToWideString(std::string text, UINT encoding = CP_UTF8); std::optional<std::wstring> StringToWideString(std::string text, UINT encoding = CP_UTF8);
// return true if repetition found (see https://github.com/Artikash/Textractor/issues/40) // return true if repetition found (see https://github.com/Artikash/Textractor/issues/40)
bool RemoveRepetition(std::wstring& text); bool RemoveRepetition(std::wstring& text);
} }

View File

@ -172,7 +172,7 @@ DWORD MainWindow::GetSelectedProcessId()
std::unordered_map<std::string, int64_t> MainWindow::GetMiscInfo(TextThread* thread) std::unordered_map<std::string, int64_t> MainWindow::GetMiscInfo(TextThread* thread)
{ {
return return
{ {
{ "current select", ui->ttCombo->currentText().startsWith(TextThreadString(thread)) }, { "current select", ui->ttCombo->currentText().startsWith(TextThreadString(thread)) },
{ "text number", thread->handle }, { "text number", thread->handle },

View File

@ -14,7 +14,6 @@ public:
explicit MainWindow(QWidget *parent = nullptr); explicit MainWindow(QWidget *parent = nullptr);
~MainWindow(); ~MainWindow();
private: private:
void closeEvent(QCloseEvent*) override; void closeEvent(QCloseEvent*) override;
void ProcessConnected(DWORD processId); void ProcessConnected(DWORD processId);