Skip to content

Commit

Permalink
use clang-format from system, qt deployed one different results
Browse files Browse the repository at this point in the history
  • Loading branch information
kreuzberger committed Nov 18, 2024
1 parent 8e5e28e commit 763f61e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 15 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,6 @@ SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 2
UseTab: Never
WhitespaceSensitiveMacros: [ 'SIGNAL', 'SLOT' ]
...

14 changes: 4 additions & 10 deletions test/browser/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@ int main( int argc, char** argv )
parser.setApplicationDescription( "TestBrowser for the qlitehtml browser widget" );
parser.addHelpOption();

QCommandLineOption fileOption( QStringList() << "f"
<< "file",
"Load html file <file> on startup.", "file" );
QCommandLineOption dirOption( QStringList() << "d"
<< "dir",
"Set directory to load files from to <directory> on startup.", "dir" );

QCommandLineOption pathOption( QStringList() << "s"
<< "searchpath",
"Add <directory> to list of search paths.", "searchpath" );
QCommandLineOption fileOption( QStringList() << "f" << "file", "Load html file <file> on startup.", "file" );
QCommandLineOption dirOption( QStringList() << "d" << "dir", "Set directory to load files from to <directory> on startup.", "dir" );

QCommandLineOption pathOption( QStringList() << "s" << "searchpath", "Add <directory> to list of search paths.", "searchpath" );
parser.addOption( fileOption );
parser.addOption( dirOption );
parser.addOption( pathOption );
Expand Down
3 changes: 1 addition & 2 deletions test/library/test_css_content.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,7 @@ void HTMLCssTest::test_custom_css_data()
{
QTest::addColumn<QString>( "html" );
QTest::addColumn<QString>( "css" );
QTest::newRow( "default line of text" ) << R"-(<html><body><p class="custom">paragraph default color</body></html>)-"
<< R"-()-";
QTest::newRow( "default line of text" ) << R"-(<html><body><p class="custom">paragraph default color</body></html>)-" << R"-()-";
QTest::newRow( "green line of text" ) << R"-(<html><body><p class="custom">paragraph green color</body></html>)-"
<< R"-(p.custom { color: green;})-";
QTest::newRow( "centered red line of text" ) << R"-(<html><body><p class="custom">paragraph red and centered color</body></html>)-"
Expand Down
2 changes: 1 addition & 1 deletion test/library/test_css_content.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class HTMLCssTest : public TestBase
Q_OBJECT
public:
HTMLCssTest()
: TestBase( qApp->arguments() ) {};
: TestBase( qApp->arguments() ){};
virtual ~HTMLCssTest() = default;

private Q_SLOTS:
Expand Down
2 changes: 1 addition & 1 deletion test/library/test_history.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class HistoryTest : public TestBase
Q_OBJECT
public:
HistoryTest()
: TestBase( qApp->arguments() ) {};
: TestBase( qApp->arguments() ){};
virtual ~HistoryTest() = default;

private Q_SLOTS:
Expand Down
2 changes: 1 addition & 1 deletion test/library/test_html_content.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class HTMLContentTest : public TestBase
Q_OBJECT
public:
HTMLContentTest()
: TestBase( qApp->arguments() ) {};
: TestBase( qApp->arguments() ){};
virtual ~HTMLContentTest() = default;

private Q_SLOTS:
Expand Down

0 comments on commit 763f61e

Please sign in to comment.