forked from Public-Mirror/Textractor
fix whitespace
This commit is contained in:
parent
54c1b508d5
commit
e8b378da75
@ -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());
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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 },
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user