Changeset View
Changeset View
Standalone View
Standalone View
autotests/visibilitytest.cpp
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Line(s) | 112 | #endif | |||
---|---|---|---|---|---|
117 | verifyTargetStates( true ); | 117 | verifyTargetStates( true ); | ||
118 | 118 | | |||
119 | m_document->processAction( hideBtn->activationAction() ); | 119 | m_document->processAction( hideBtn->activationAction() ); | ||
120 | 120 | | |||
121 | // Now all should be hidden | 121 | // Now all should be hidden | ||
122 | verifyTargetStates( false ); | 122 | verifyTargetStates( false ); | ||
123 | 123 | | |||
124 | // Save the changed states | 124 | // Save the changed states | ||
125 | QTemporaryFile saveFile( QString( "%1/okrXXXXXX.pdf" ).arg( QDir::tempPath() ) ); | 125 | QTemporaryFile saveFile( QStringLiteral( "%1/okrXXXXXX.pdf" ).arg( QDir::tempPath() ) ); | ||
126 | QVERIFY( saveFile.open() ); | 126 | QVERIFY( saveFile.open() ); | ||
127 | saveFile.close(); | 127 | saveFile.close(); | ||
128 | 128 | | |||
129 | QVERIFY( m_document->saveChanges( saveFile.fileName() ) ); | 129 | QVERIFY( m_document->saveChanges( saveFile.fileName() ) ); | ||
130 | 130 | | |||
131 | auto newDoc = new Okular::Document( nullptr ); | 131 | auto newDoc = new Okular::Document( nullptr ); | ||
132 | 132 | | |||
133 | QMimeDatabase db; | 133 | QMimeDatabase db; | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |