summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textblock-formats/main.cpp
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2014-02-25 10:25:23 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-14 22:39:58 +0100
commit391c2c12abb66c6edcdac511be4ca126aeaf3377 (patch)
tree18b2abebeb9825d0a0cd33c87fdae0d457fc7385 /src/gui/doc/snippets/textblock-formats/main.cpp
parent02abe7921bd84bccfe68a40923f00f48512f0d53 (diff)
Introduce GENERATED_TESTDATA variable and fix qresourceengine test.
testcase.prf cannot be loaded from pro file for various reasons, see qtbase commit history for details. Moved runtime testdata logic from pro file to testdata.prf, and thus made is reusable in other test cases as well. Change-Id: I500d08dc4951e4eda862071e4ddd3e0f6de8c3d2 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'src/gui/doc/snippets/textblock-formats/main.cpp')
0 files changed, 0 insertions, 0 deletions
a Corporation and its Subsidiary(-ies) nor ** the names of its contributors may be used to endorse or promote ** products derived from this software without specific prior written ** permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." ** $QT_END_LICENSE$ ** ****************************************************************************/ #include <QApplication> #include <QLabel> #include <QPointer> int main(int argc, char *argv[]) { QApplication app(argc, argv); //! [0] QPointer<QLabel> label = new QLabel; label->setText("&Status:"); //! [0] //! [1] if (label) //! [1] //! [2] label->show(); //! [2] return 0; }