1 /****************************************************************************
3 ** Copyright (C) Qxt Foundation. Some rights reserved.
5 ** This file is part of the QxtCore module of the Qt eXTension library
7 ** This library is free software; you can redistribute it and/or
8 ** modify it under the terms of the GNU Lesser General Public
9 ** License as published by the Free Software Foundation; either
10 ** version 2.1 of the License, or any later version.
12 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
13 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15 ** There is aditional information in the LICENSE file of libqxt.
16 ** If you did not receive a copy of the file try to download it or
17 ** contact the libqxt Management
19 ** <http://libqxt.sourceforge.net> <aep@exys.org>
21 ****************************************************************************/
23 #include <QxtCursesApplication.h>
24 #include <QxtCFrame.h>
25 #include "cursestest.h"
27 QxtCFrame *_f, *_g, *_h;
29 void Test::moveWindows() {
32 _f->move(_f->x()+1, _f->y());
34 _g->move(_g->x()+1, _g->y());
36 _h->resize(_h->width()+1, _h->height());
38 _f->move(_f->x(), _f->y()+1);
40 _g->move(_g->x(), _g->y()+1);
42 _h->resize(_h->width(), _h->height()+1);
44 _f->move(_f->x()-1, _f->y());
46 _g->move(_g->x()-1, _g->y());
48 _h->resize(_h->width()-1, _h->height());
50 _f->move(_f->x(), _f->y()-1);
52 _g->move(_g->x(), _g->y()-1);
54 _h->resize(_h->width(), _h->height()-1);
59 int main(int argc, char** argv) {
60 QxtCursesApplication app(argc, argv);
64 QxtCFrame* g = new QxtCFrame(&f);
65 QxtCFrame* h = new QxtCFrame(g);
78 QObject::connect(&t, SIGNAL(timeout()), &test, SLOT(moveWindows()));