53 #include "qconfig_eval.cpp" 56 "\nQt %1 Evaluation License\n" 57 "Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).\n" 58 "All rights reserved.\n\n" 59 "This trial version may only be used for evaluation purposes\n" 60 "and will shut down after 120 minutes.\n" 63 "The evaluation expires in %4 days\n\n" 64 "Contact http://qt.nokia.com/about/contact-us for pricing and purchasing information.\n";
67 "\nQt %1 Evaluation License\n" 68 "Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).\n" 69 "All rights reserved.\n\n" 70 "This trial version may only be used for evaluation purposes\n" 73 "The evaluation expires in %4 days\n\n" 74 "Contact http://qt.nokia.com/about/contact-us for pricing and purchasing information.\n";
77 "This software is using the trial version of the Qt GUI toolkit.\n" 78 "The trial period has expired. If you need more time to\n" 79 "evaluate Qt, or if you have any questions about Qt, contact us\n" 80 "at: http://qt.nokia.com/about/contact-us.\n\n";
83 "\nThe evaluation of Qt will SHUT DOWN in 1 minute.\n" 84 "Contact http://qt.nokia.com/about/contact-us for pricing and purchasing information.\n";
87 "\nThe evaluation of Qt has now reached its automatic\n" 88 "timeout and will shut down.\n" 89 "Contact http://qt.nokia.com/about/contact-us for pricing and purchasing information.\n";
93 const volatile char *
const license_key = qt_eval_key_data + 12;
96 if (!qt_eval_key_data[0] || !*license_key)
100 const volatile char *typecode = license_key;
102 for ( ; field && *typecode; ++typecode)
103 if (*typecode ==
'-')
106 if (!field && typecode[1] ==
'4' && typecode[2] ==
'M') {
107 if (typecode[0] ==
'Q')
109 else if (typecode[0] ==
'R' || typecode[0] ==
'Z')
146 #define WARN_TIMEOUT 60 * 1000 * 119 147 #define KILL_DELAY 60 * 1000 * 1 176 #if defined(QT_BUILD_CORE_LIB) || defined (QT_BOOTSTRAPPED) 203 #ifdef QT_BUILD_GUI_LIB 216 static const char *
const qtlogo_eval_xpm[] = {
394 "/././././.c h ' Q / W _ &.p././././././././././././././././././././././././././././././././.",
395 "/././.4 O % Z ~ ~ W ~ W R U R R ( X.>.p././././././././././././././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~ ~ ~ ~ .",
438 "= = & e ^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ W ( T O +.^.~.^.^.^.^.^.&.Y ( ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ W ( Y 2.",
439 "= = & e ( W ~ ~ ~ ~ ~ ~ ~ ~ ~ / W ) N + b.^.^.^.^.^.^.&.R ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ W /.",
440 "= = & e ^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ W ^ N 7 r.W.^.^.^.!.X.W ~ ~ W ~ W ~ ~ ~ ~ ~ ~ / ( ( K p./.",
441 "= = & e ( W ~ ~ W ~ ~ ~ ~ ~ ~ ~ ~ ~ W ( W C Q &.:.X.| ~ ~ ~ ~ W ~ / ~ ( / ( ~ W E U P 1././.",
442 "= = + e ^ / / / ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ W / ) ^ R Y W W ~ ~ ( / ( / W R Y Y U R ( X.,././././.",
443 "= = * e ( / ~ / ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ W W W ! ( ( ( W W E U P Y W ( X.,.d./././././././././.",
444 "= = * e ( W ~ ~ ~ ~ W ! ~ W ~ W ~ ( ( / ^ W W U Y P W ( X.,.d./././././././././././././././.",
445 "8 $ * e ( W ~ ~ ~ ! ( ( ( / ( W R Y Y Y R ( X.>.d./././././././././././././././././././././.",
446 "/.d . y ^ / / / ( W Y Y P P W ( X.>.d./././././././././././././././././././././././././././.",
447 "/./.h : ^ R R R W ( X.<.f./././././././././././././././././././././././././././././././././.",
448 "/././.] _ *.3./././././././././././././././././././././././././././././././././././././././." 451 class EvalMessageBox :
public QDialog 454 EvalMessageBox(
bool expired)
469 pixmap_label->
setPixmap(qtlogo_eval_xpm);
475 pm_and_text_layout->
addWidget(pixmap_label);
476 pm_and_text_layout->
addWidget(text_label);
479 master_layout->
addLayout(pm_and_text_layout);
503 setFixedSize(sizeHint());
524 void qt_gui_eval_init(
uint)
531 EvalMessageBox box(
true);
537 EvalMessageBox *box =
new EvalMessageBox(
false);
544 static QString qt_eval_title_prefix()
553 return qt_eval_title_prefix() + title;
556 void qt_eval_init_widget(
QWidget *w)
int startTimer(int interval)
Starts a timer and returns a timer identifier, or returns zero if it could not start a timer...
int daysTo(const QDate &) const
Returns the number of days from this date to d (which is negative if d is earlier than this date)...
#define QT_END_NAMESPACE
This macro expands to.
The QDialog class is the base class of dialog windows.
static QString licensee()
Returns the person to whom this build of Qt is licensed.
static QString qt_eval_string()
void addLayout(QLayout *layout, int stretch=0)
Adds layout to the end of the box, with serial stretch factor stretch.
#define QT_END_INCLUDE_NAMESPACE
This macro is equivalent to QT_BEGIN_NAMESPACE.
static int qt_eval_days_left()
The QDate class provides date functions.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=0)
Adds widget to the end of this box layout, with a stretch factor of stretch and alignment alignment...
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
void setPixmap(const QPixmap &)
void setParent(QObject *)
Makes the object a child of parent.
void timerEvent(QTimerEvent *e)
This event handler can be reimplemented in a subclass to receive timer events for the object...
static void quit()
Tells the application to exit with return code 0 (success).
static int qt_eval_is_supported()
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString trimmed() const Q_REQUIRED_RESULT
Returns a string that has whitespace removed from the start and the end.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
static QDate currentDate()
Returns the current date, as reported by the system clock.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
static const char boilerplate_expired[]
int timerId() const
Returns the unique timer identifier, which is the same identifier as returned from QObject::startTime...
#define QT_VERSION_STR
This macro expands to a string that specifies Qt's version number (for example, "4.
void setFrameShape(Shape)
static QDate buildDate()
Returns the installation date for this build of Qt.
static QWidget * parentWidget(const QWidget *w)
void setFrameShadow(Shadow)
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
static const char will_shutdown_1min[]
The QTimerEvent class contains parameters that describe a timer event.
static QCoreApplication * instance()
Returns a pointer to the application's QCoreApplication (or QApplication) instance.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
bool singleShot
This static function calls a slot after a given time interval.
static StandardButton information(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons=Ok, StandardButton defaultButton=NoButton)
Opens an information message box with the given title and text in front of the specified parent widge...
The QLabel widget provides a text or image display.
The QHBoxLayout class lines up widgets horizontally.
#define QT_BEGIN_INCLUDE_NAMESPACE
This macro is equivalent to QT_END_NAMESPACE.
The QVBoxLayout class lines up widgets vertically.
static const char boilerplate_unsuported[]
static const char will_shutdown_now[]
#define qPrintable(string)
The QFrame class is the base class of widgets that can have a frame.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
static const char boilerplate_supported[]
void setAlignment(Qt::Alignment)
Without this function, a call to e.
void killTimer(int id)
Kills the timer with timer identifier, id.