Running astyle.

This commit is contained in:
orbitcowboy 2017-12-08 09:16:34 +01:00
parent 8d08357a73
commit 80d0c8451f
2 changed files with 6 additions and 10 deletions

View File

@ -41,11 +41,11 @@ static bool CheckArgs(const QStringList &args);
int main(int argc, char *argv[])
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QApplication app(argc, argv);
#if QT_VERSION < 0x050000

View File

@ -415,8 +415,7 @@ void ResultsView::logClear()
void ResultsView::logCopyEntry()
{
const QListWidgetItem * item = mUI.mListLog->currentItem();
if(nullptr != item)
{
if (nullptr != item) {
QClipboard *clipboard = QApplication::clipboard();
clipboard->setText(item->text());
}
@ -425,11 +424,9 @@ void ResultsView::logCopyEntry()
void ResultsView::logCopyComplete()
{
QString logText;
for(int i=0; i < mUI.mListLog->count(); ++i)
{
for (int i=0; i < mUI.mListLog->count(); ++i) {
const QListWidgetItem * item = mUI.mListLog->item(i);
if(nullptr != item)
{
if (nullptr != item) {
logText += item->text();
}
}
@ -439,8 +436,7 @@ void ResultsView::logCopyComplete()
void ResultsView::on_mListLog_customContextMenuRequested(const QPoint &pos)
{
if(mUI.mListLog->count() > 0)
{
if (mUI.mListLog->count() > 0) {
QPoint globalPos = mUI.mListLog->mapToGlobal(pos);
QMenu contextMenu;