fix whitespace
This commit is contained in:
parent
54c1b508d5
commit
e8b378da75
@ -117,8 +117,8 @@ void ExtenWindow::Add(QFileInfo extenFile)
|
||||
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
|
||||
if (event->type() == QEvent::ChildRemoved)
|
||||
{
|
||||
@ -127,7 +127,7 @@ bool ExtenWindow::eventFilter(QObject* target, QEvent* event)
|
||||
Reorder(extenNames);
|
||||
Sync();
|
||||
}
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
void ExtenWindow::keyPressEvent(QKeyEvent* event)
|
||||
@ -144,7 +144,7 @@ void ExtenWindow::dragEnterEvent(QDragEnterEvent* event)
|
||||
event->acceptProposedAction();
|
||||
}
|
||||
|
||||
void ExtenWindow::dropEvent(QDropEvent* event)
|
||||
{
|
||||
void ExtenWindow::dropEvent(QDropEvent* event)
|
||||
{
|
||||
for (auto file : event->mimeData()->urls()) Add(file.toLocalFile());
|
||||
}
|
||||
|
@ -204,8 +204,8 @@ namespace Host
|
||||
return textThreadsByParams->at(tp);
|
||||
}
|
||||
|
||||
void AddConsoleOutput(std::wstring text)
|
||||
{
|
||||
GetThread(CONSOLE)->PushSentence(text);
|
||||
void AddConsoleOutput(std::wstring text)
|
||||
{
|
||||
GetThread(CONSOLE)->PushSentence(text);
|
||||
}
|
||||
}
|
||||
|
@ -9,5 +9,5 @@ namespace Util
|
||||
std::optional<std::wstring> GetClipboardText();
|
||||
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)
|
||||
bool RemoveRepetition(std::wstring& text);
|
||||
bool RemoveRepetition(std::wstring& text);
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ DWORD MainWindow::GetSelectedProcessId()
|
||||
|
||||
std::unordered_map<std::string, int64_t> MainWindow::GetMiscInfo(TextThread* thread)
|
||||
{
|
||||
return
|
||||
return
|
||||
{
|
||||
{ "current select", ui->ttCombo->currentText().startsWith(TextThreadString(thread)) },
|
||||
{ "text number", thread->handle },
|
||||
|
@ -14,7 +14,6 @@ public:
|
||||
explicit MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
|
||||
private:
|
||||
void closeEvent(QCloseEvent*) override;
|
||||
void ProcessConnected(DWORD processId);
|
||||
|
Loading…
Reference in New Issue
Block a user