Browse Source

Update generated files

Neal Wilson 6 years ago
parent
commit
5870e9535f
11 changed files with 2522 additions and 1902 deletions
  1. 1
    1
      src/abouttypica.cpp
  2. 19
    19
      src/daterangeselector.cpp
  3. 4
    4
      src/daterangeselector.h
  4. 2
    2
      src/draglabel.cpp
  5. 2
    2
      src/draglabel.h
  6. 1
    1
      src/helpmenu.cpp
  7. 1
    1
      src/licensewindow.cpp
  8. 271
    8
      src/moc_typica.cpp
  9. 6
    6
      src/scale.cpp
  10. 2
    2
      src/scale.h
  11. 2213
    1856
      src/typica.cpp

+ 1
- 1
src/abouttypica.cpp View File

@@ -17,7 +17,7 @@ aboutFile.close();
17 17
 setCentralWidget(banner);
18 18
 }
19 19
 
20
-#line 6801 "./typica.w"
20
+#line 6808 "./typica.w"
21 21
 
22 22
 /*:288*/
23 23
 #line 36 "./abouttypica.w"

+ 19
- 19
src/daterangeselector.cpp View File

@@ -1,4 +1,4 @@
1
-/*694:*/
1
+/*695:*/
2 2
 #line 70 "./daterangeselector.w"
3 3
 
4 4
 #include <QCalendarWidget> 
@@ -11,7 +11,7 @@
11 11
 
12 12
 #include "daterangeselector.h"
13 13
 
14
-/*696:*/
14
+/*697:*/
15 15
 #line 117 "./daterangeselector.w"
16 16
 
17 17
 CustomDateRangePopup::CustomDateRangePopup(QWidget*parent):
@@ -55,7 +55,7 @@ outerLayout->addLayout(buttonLayout);
55 55
 setLayout(outerLayout);
56 56
 }
57 57
 
58
-/*:696*//*697:*/
58
+/*:697*//*698:*/
59 59
 #line 165 "./daterangeselector.w"
60 60
 
61 61
 void CustomDateRangePopup::hideEvent(QHideEvent*)
@@ -63,7 +63,7 @@ void CustomDateRangePopup::hideEvent(QHideEvent*)
63 63
 emit hidingPopup();
64 64
 }
65 65
 
66
-/*:697*//*698:*/
66
+/*:698*//*699:*/
67 67
 #line 174 "./daterangeselector.w"
68 68
 
69 69
 void CustomDateRangePopup::applyRange()
@@ -78,7 +78,7 @@ endDateSelector->selectedDate().toString(Qt::ISODate)));
78 78
 hide();
79 79
 }
80 80
 
81
-/*:698*//*699:*/
81
+/*:699*//*700:*/
82 82
 #line 191 "./daterangeselector.w"
83 83
 
84 84
 void CustomDateRangePopup::validateRange()
@@ -93,10 +93,10 @@ applyButton->setEnabled(true);
93 93
 }
94 94
 }
95 95
 
96
-/*:699*/
96
+/*:700*/
97 97
 #line 81 "./daterangeselector.w"
98 98
 
99
-/*700:*/
99
+/*701:*/
100 100
 #line 209 "./daterangeselector.w"
101 101
 
102 102
 DateRangeSelector::DateRangeSelector(QWidget*parent):
@@ -108,7 +108,7 @@ connect(quickSelector,SIGNAL(currentIndexChanged(int)),this,SLOT(updateRange(int
108 108
 QDate currentDate= QDate::currentDate();
109 109
 
110 110
 QHBoxLayout*layout= new QHBoxLayout;
111
-/*701:*/
111
+/*702:*/
112 112
 #line 238 "./daterangeselector.w"
113 113
 
114 114
 quickSelector->addItem("Yesterday",QVariant(QStringList()<<
@@ -188,7 +188,7 @@ quickSelector->insertSeparator(quickSelector->count());
188 188
 quickSelector->addItem("Lifetime");
189 189
 quickSelector->addItem("Custom");
190 190
 
191
-/*:701*/
191
+/*:702*/
192 192
 #line 219 "./daterangeselector.w"
193 193
 
194 194
 QToolButton*customButton= new QToolButton;
@@ -201,7 +201,7 @@ setLayout(layout);
201 201
 connect(customButton,SIGNAL(clicked()),this,SLOT(toggleCustom()));
202 202
 }
203 203
 
204
-/*:700*//*702:*/
204
+/*:701*//*703:*/
205 205
 #line 321 "./daterangeselector.w"
206 206
 
207 207
 void DateRangeSelector::updateRange(int index)
@@ -217,7 +217,7 @@ emit rangeUpdated(quickSelector->itemData(quickSelector->currentIndex()));
217 217
 }
218 218
 }
219 219
 
220
-/*:702*//*703:*/
220
+/*:703*//*704:*/
221 221
 #line 338 "./daterangeselector.w"
222 222
 
223 223
 void DateRangeSelector::popupHidden()
@@ -227,7 +227,7 @@ customRangeSelector= NULL;
227 227
 quickSelector->setCurrentIndex(lastIndex);
228 228
 }
229 229
 
230
-/*:703*//*704:*/
230
+/*:704*//*705:*/
231 231
 #line 349 "./daterangeselector.w"
232 232
 
233 233
 void DateRangeSelector::setCustomRange(QVariant range)
@@ -238,7 +238,7 @@ lastIndex= quickSelector->count()-1;
238 238
 quickSelector->setCurrentIndex(lastIndex);
239 239
 }
240 240
 
241
-/*:704*//*705:*/
241
+/*:705*//*706:*/
242 242
 #line 364 "./daterangeselector.w"
243 243
 
244 244
 void DateRangeSelector::toggleCustom()
@@ -279,7 +279,7 @@ customRangeSelector= NULL;
279 279
 }
280 280
 }
281 281
 
282
-/*:705*//*706:*/
282
+/*:706*//*707:*/
283 283
 #line 406 "./daterangeselector.w"
284 284
 
285 285
 QVariant DateRangeSelector::currentRange()
@@ -287,7 +287,7 @@ QVariant DateRangeSelector::currentRange()
287 287
 return quickSelector->itemData(lastIndex);
288 288
 }
289 289
 
290
-/*:706*//*707:*/
290
+/*:707*//*708:*/
291 291
 #line 414 "./daterangeselector.w"
292 292
 
293 293
 void DateRangeSelector::setCurrentIndex(int index)
@@ -300,7 +300,7 @@ int DateRangeSelector::currentIndex()
300 300
 return quickSelector->currentIndex();
301 301
 }
302 302
 
303
-/*:707*//*708:*/
303
+/*:708*//*709:*/
304 304
 #line 434 "./daterangeselector.w"
305 305
 
306 306
 void DateRangeSelector::setLifetimeRange(QString startDate,QString endDate)
@@ -309,7 +309,7 @@ quickSelector->setItemData(quickSelector->count()-2,
309 309
 QVariant(QStringList()<<startDate<<endDate));
310 310
 }
311 311
 
312
-/*:708*//*709:*/
312
+/*:709*//*710:*/
313 313
 #line 444 "./daterangeselector.w"
314 314
 
315 315
 void DateRangeSelector::removeIndex(int index)
@@ -317,7 +317,7 @@ void DateRangeSelector::removeIndex(int index)
317 317
 quickSelector->removeItem(index);
318 318
 }
319 319
 
320
-/*:709*/
320
+/*:710*/
321 321
 #line 82 "./daterangeselector.w"
322 322
 
323 323
 
@@ -327,4 +327,4 @@ quickSelector->removeItem(index);
327 327
 #endif
328 328
 #endif
329 329
 
330
-/*:694*/
330
+/*:695*/

+ 4
- 4
src/daterangeselector.h View File

@@ -1,4 +1,4 @@
1
-/*693:*/
1
+/*694:*/
2 2
 #line 30 "./daterangeselector.w"
3 3
 
4 4
 
@@ -9,7 +9,7 @@
9 9
 #ifndef TypicaDateRangeSelectorHeader
10 10
 #define TypicaDateRangeSelectorHeader
11 11
 
12
-/*695:*/
12
+/*696:*/
13 13
 #line 93 "./daterangeselector.w"
14 14
 
15 15
 class CustomDateRangePopup:public QWidget
@@ -31,7 +31,7 @@ QCalendarWidget*endDateSelector;
31 31
 QPushButton*applyButton;
32 32
 };
33 33
 
34
-/*:695*/
34
+/*:696*/
35 35
 #line 39 "./daterangeselector.w"
36 36
 
37 37
 
@@ -62,4 +62,4 @@ int lastIndex;
62 62
 
63 63
 #endif
64 64
 
65
-/*:693*/
65
+/*:694*/

+ 2
- 2
src/draglabel.cpp View File

@@ -1,4 +1,4 @@
1
-/*1053:*/
1
+/*1054:*/
2 2
 #line 33 "./scales.w"
3 3
 
4 4
 #include "draglabel.h"
@@ -26,4 +26,4 @@ drag->exec();
26 26
 }
27 27
 }
28 28
 
29
-/*:1053*/
29
+/*:1054*/

+ 2
- 2
src/draglabel.h View File

@@ -1,4 +1,4 @@
1
-/*1052:*/
1
+/*1053:*/
2 2
 #line 13 "./scales.w"
3 3
 
4 4
 #ifndef TypicaDragLabelInclude
@@ -17,4 +17,4 @@ void mousePressEvent(QMouseEvent*event);
17 17
 
18 18
 #endif
19 19
 
20
-/*:1052*/
20
+/*:1053*/

+ 1
- 1
src/helpmenu.cpp View File

@@ -42,7 +42,7 @@ LicenseWindow*window= new LicenseWindow;
42 42
 window->show();
43 43
 }
44 44
 
45
-#line 4858 "./typica.w"
45
+#line 4865 "./typica.w"
46 46
 
47 47
 #line 1 "./licensewindow.w"
48 48
 /*:210*/

+ 1
- 1
src/licensewindow.cpp View File

@@ -11,7 +11,7 @@
11 11
 #include <QVariant> 
12 12
 #include <QUrl> 
13 13
 
14
-#line 4860 "./typica.w"
14
+#line 4867 "./typica.w"
15 15
 
16 16
 /*:216*/
17 17
 #line 37 "./licensewindow.w"

+ 271
- 8
src/moc_typica.cpp View File

@@ -2496,21 +2496,38 @@ static const uint qt_meta_data_Application[] = {
2496 2496
        6,       // revision
2497 2497
        0,       // classname
2498 2498
        0,    0, // classinfo
2499
-       1,   14, // methods
2499
+       8,   14, // methods
2500 2500
        0,    0, // properties
2501 2501
        0,    0, // enums/sets
2502 2502
        0,    0, // constructors
2503 2503
        0,       // flags
2504
-       0,       // signalCount
2504
+       1,       // signalCount
2505
+
2506
+ // signals: signature, parameters, type, tag, flags
2507
+      18,   13,   12,   12, 0x05,
2505 2508
 
2506 2509
  // slots: signature, parameters, type, tag, flags
2507
-      13,   12,   12,   12, 0x0a,
2510
+      46,   39,   12,   12, 0x0a,
2511
+      73,   13,   12,   12, 0x0a,
2512
+     103,   12,   12,   12, 0x0a,
2513
+
2514
+ // methods: signature, parameters, type, tag, flags
2515
+     134,   12,  129,   12, 0x02,
2516
+     162,   12,  154,   12, 0x02,
2517
+     196,  182,  129,   12, 0x02,
2518
+     219,   12,  129,   12, 0x02,
2508 2519
 
2509 2520
        0        // eod
2510 2521
 };
2511 2522
 
2512 2523
 static const char qt_meta_stringdata_Application[] = {
2513
-    "Application\0\0saveDeviceConfiguration()\0"
2524
+    "Application\0\0user\0userChanged(QString)\0"
2525
+    "status\0setDatabaseConnected(bool)\0"
2526
+    "setCurrentTypicaUser(QString)\0"
2527
+    "saveDeviceConfiguration()\0bool\0"
2528
+    "databaseConnected()\0QString\0"
2529
+    "currentTypicaUser()\0user,password\0"
2530
+    "login(QString,QString)\0autoLogin()\0"
2514 2531
 };
2515 2532
 
2516 2533
 void Application::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
@@ -2519,11 +2536,21 @@ void Application::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
2519 2536
         Q_ASSERT(staticMetaObject.cast(_o));
2520 2537
         Application *_t = static_cast<Application *>(_o);
2521 2538
         switch (_id) {
2522
-        case 0: _t->saveDeviceConfiguration(); break;
2539
+        case 0: _t->userChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
2540
+        case 1: _t->setDatabaseConnected((*reinterpret_cast< bool(*)>(_a[1]))); break;
2541
+        case 2: _t->setCurrentTypicaUser((*reinterpret_cast< const QString(*)>(_a[1]))); break;
2542
+        case 3: _t->saveDeviceConfiguration(); break;
2543
+        case 4: { bool _r = _t->databaseConnected();
2544
+            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
2545
+        case 5: { QString _r = _t->currentTypicaUser();
2546
+            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
2547
+        case 6: { bool _r = _t->login((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])));
2548
+            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
2549
+        case 7: { bool _r = _t->autoLogin();
2550
+            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
2523 2551
         default: ;
2524 2552
         }
2525 2553
     }
2526
-    Q_UNUSED(_a);
2527 2554
 }
2528 2555
 
2529 2556
 const QMetaObjectExtraData Application::staticMetaObjectExtraData = {
@@ -2558,12 +2585,19 @@ int Application::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
2558 2585
     if (_id < 0)
2559 2586
         return _id;
2560 2587
     if (_c == QMetaObject::InvokeMetaMethod) {
2561
-        if (_id < 1)
2588
+        if (_id < 8)
2562 2589
             qt_static_metacall(this, _c, _id, _a);
2563
-        _id -= 1;
2590
+        _id -= 8;
2564 2591
     }
2565 2592
     return _id;
2566 2593
 }
2594
+
2595
+// SIGNAL 0
2596
+void Application::userChanged(const QString & _t1)
2597
+{
2598
+    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
2599
+    QMetaObject::activate(this, &staticMetaObject, 0, _a);
2600
+}
2567 2601
 static const uint qt_meta_data_SaltModel[] = {
2568 2602
 
2569 2603
  // content:
@@ -8904,4 +8938,233 @@ void Annotator::annotation(QString _t1, int _t2, int _t3)
8904 8938
     void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
8905 8939
     QMetaObject::activate(this, &staticMetaObject, 0, _a);
8906 8940
 }
8941
+static const uint qt_meta_data_LoginDialog[] = {
8942
+
8943
+ // content:
8944
+       6,       // revision
8945
+       0,       // classname
8946
+       0,    0, // classinfo
8947
+       1,   14, // methods
8948
+       0,    0, // properties
8949
+       0,    0, // enums/sets
8950
+       0,    0, // constructors
8951
+       0,       // flags
8952
+       0,       // signalCount
8953
+
8954
+ // slots: signature, parameters, type, tag, flags
8955
+      13,   12,   12,   12, 0x0a,
8956
+
8957
+       0        // eod
8958
+};
8959
+
8960
+static const char qt_meta_stringdata_LoginDialog[] = {
8961
+    "LoginDialog\0\0attemptLogin()\0"
8962
+};
8963
+
8964
+void LoginDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
8965
+{
8966
+    if (_c == QMetaObject::InvokeMetaMethod) {
8967
+        Q_ASSERT(staticMetaObject.cast(_o));
8968
+        LoginDialog *_t = static_cast<LoginDialog *>(_o);
8969
+        switch (_id) {
8970
+        case 0: _t->attemptLogin(); break;
8971
+        default: ;
8972
+        }
8973
+    }
8974
+    Q_UNUSED(_a);
8975
+}
8976
+
8977
+const QMetaObjectExtraData LoginDialog::staticMetaObjectExtraData = {
8978
+    0,  qt_static_metacall 
8979
+};
8980
+
8981
+const QMetaObject LoginDialog::staticMetaObject = {
8982
+    { &QDialog::staticMetaObject, qt_meta_stringdata_LoginDialog,
8983
+      qt_meta_data_LoginDialog, &staticMetaObjectExtraData }
8984
+};
8985
+
8986
+#ifdef Q_NO_DATA_RELOCATION
8987
+const QMetaObject &LoginDialog::getStaticMetaObject() { return staticMetaObject; }
8988
+#endif //Q_NO_DATA_RELOCATION
8989
+
8990
+const QMetaObject *LoginDialog::metaObject() const
8991
+{
8992
+    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
8993
+}
8994
+
8995
+void *LoginDialog::qt_metacast(const char *_clname)
8996
+{
8997
+    if (!_clname) return 0;
8998
+    if (!strcmp(_clname, qt_meta_stringdata_LoginDialog))
8999
+        return static_cast<void*>(const_cast< LoginDialog*>(this));
9000
+    return QDialog::qt_metacast(_clname);
9001
+}
9002
+
9003
+int LoginDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
9004
+{
9005
+    _id = QDialog::qt_metacall(_c, _id, _a);
9006
+    if (_id < 0)
9007
+        return _id;
9008
+    if (_c == QMetaObject::InvokeMetaMethod) {
9009
+        if (_id < 1)
9010
+            qt_static_metacall(this, _c, _id, _a);
9011
+        _id -= 1;
9012
+    }
9013
+    return _id;
9014
+}
9015
+static const uint qt_meta_data_UserLabel[] = {
9016
+
9017
+ // content:
9018
+       6,       // revision
9019
+       0,       // classname
9020
+       0,    0, // classinfo
9021
+       1,   14, // methods
9022
+       0,    0, // properties
9023
+       0,    0, // enums/sets
9024
+       0,    0, // constructors
9025
+       0,       // flags
9026
+       0,       // signalCount
9027
+
9028
+ // slots: signature, parameters, type, tag, flags
9029
+      16,   11,   10,   10, 0x0a,
9030
+
9031
+       0        // eod
9032
+};
9033
+
9034
+static const char qt_meta_stringdata_UserLabel[] = {
9035
+    "UserLabel\0\0user\0updateLabel(QString)\0"
9036
+};
9037
+
9038
+void UserLabel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
9039
+{
9040
+    if (_c == QMetaObject::InvokeMetaMethod) {
9041
+        Q_ASSERT(staticMetaObject.cast(_o));
9042
+        UserLabel *_t = static_cast<UserLabel *>(_o);
9043
+        switch (_id) {
9044
+        case 0: _t->updateLabel((*reinterpret_cast< const QString(*)>(_a[1]))); break;
9045
+        default: ;
9046
+        }
9047
+    }
9048
+}
9049
+
9050
+const QMetaObjectExtraData UserLabel::staticMetaObjectExtraData = {
9051
+    0,  qt_static_metacall 
9052
+};
9053
+
9054
+const QMetaObject UserLabel::staticMetaObject = {
9055
+    { &QLabel::staticMetaObject, qt_meta_stringdata_UserLabel,
9056
+      qt_meta_data_UserLabel, &staticMetaObjectExtraData }
9057
+};
9058
+
9059
+#ifdef Q_NO_DATA_RELOCATION
9060
+const QMetaObject &UserLabel::getStaticMetaObject() { return staticMetaObject; }
9061
+#endif //Q_NO_DATA_RELOCATION
9062
+
9063
+const QMetaObject *UserLabel::metaObject() const
9064
+{
9065
+    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
9066
+}
9067
+
9068
+void *UserLabel::qt_metacast(const char *_clname)
9069
+{
9070
+    if (!_clname) return 0;
9071
+    if (!strcmp(_clname, qt_meta_stringdata_UserLabel))
9072
+        return static_cast<void*>(const_cast< UserLabel*>(this));
9073
+    return QLabel::qt_metacast(_clname);
9074
+}
9075
+
9076
+int UserLabel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
9077
+{
9078
+    _id = QLabel::qt_metacall(_c, _id, _a);
9079
+    if (_id < 0)
9080
+        return _id;
9081
+    if (_c == QMetaObject::InvokeMetaMethod) {
9082
+        if (_id < 1)
9083
+            qt_static_metacall(this, _c, _id, _a);
9084
+        _id -= 1;
9085
+    }
9086
+    return _id;
9087
+}
9088
+static const uint qt_meta_data_NewTypicaUser[] = {
9089
+
9090
+ // content:
9091
+       6,       // revision
9092
+       0,       // classname
9093
+       0,    0, // classinfo
9094
+       4,   14, // methods
9095
+       0,    0, // properties
9096
+       0,    0, // enums/sets
9097
+       0,    0, // constructors
9098
+       0,       // flags
9099
+       0,       // signalCount
9100
+
9101
+ // slots: signature, parameters, type, tag, flags
9102
+      15,   14,   14,   14, 0x0a,
9103
+      32,   14,   14,   14, 0x0a,
9104
+      49,   14,   14,   14, 0x0a,
9105
+      60,   14,   14,   14, 0x0a,
9106
+
9107
+       0        // eod
9108
+};
9109
+
9110
+static const char qt_meta_stringdata_NewTypicaUser[] = {
9111
+    "NewTypicaUser\0\0createAndReset()\0"
9112
+    "createAndClose()\0validate()\0"
9113
+    "cancelValidate()\0"
9114
+};
9115
+
9116
+void NewTypicaUser::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
9117
+{
9118
+    if (_c == QMetaObject::InvokeMetaMethod) {
9119
+        Q_ASSERT(staticMetaObject.cast(_o));
9120
+        NewTypicaUser *_t = static_cast<NewTypicaUser *>(_o);
9121
+        switch (_id) {
9122
+        case 0: _t->createAndReset(); break;
9123
+        case 1: _t->createAndClose(); break;
9124
+        case 2: _t->validate(); break;
9125
+        case 3: _t->cancelValidate(); break;
9126
+        default: ;
9127
+        }
9128
+    }
9129
+    Q_UNUSED(_a);
9130
+}
9131
+
9132
+const QMetaObjectExtraData NewTypicaUser::staticMetaObjectExtraData = {
9133
+    0,  qt_static_metacall 
9134
+};
9135
+
9136
+const QMetaObject NewTypicaUser::staticMetaObject = {
9137
+    { &QDialog::staticMetaObject, qt_meta_stringdata_NewTypicaUser,
9138
+      qt_meta_data_NewTypicaUser, &staticMetaObjectExtraData }
9139
+};
9140
+
9141
+#ifdef Q_NO_DATA_RELOCATION
9142
+const QMetaObject &NewTypicaUser::getStaticMetaObject() { return staticMetaObject; }
9143
+#endif //Q_NO_DATA_RELOCATION
9144
+
9145
+const QMetaObject *NewTypicaUser::metaObject() const
9146
+{
9147
+    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
9148
+}
9149
+
9150
+void *NewTypicaUser::qt_metacast(const char *_clname)
9151
+{
9152
+    if (!_clname) return 0;
9153
+    if (!strcmp(_clname, qt_meta_stringdata_NewTypicaUser))
9154
+        return static_cast<void*>(const_cast< NewTypicaUser*>(this));
9155
+    return QDialog::qt_metacast(_clname);
9156
+}
9157
+
9158
+int NewTypicaUser::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
9159
+{
9160
+    _id = QDialog::qt_metacall(_c, _id, _a);
9161
+    if (_id < 0)
9162
+        return _id;
9163
+    if (_c == QMetaObject::InvokeMetaMethod) {
9164
+        if (_id < 4)
9165
+            qt_static_metacall(this, _c, _id, _a);
9166
+        _id -= 4;
9167
+    }
9168
+    return _id;
9169
+}
8907 9170
 QT_END_MOC_NAMESPACE

+ 6
- 6
src/scale.cpp View File

@@ -1,4 +1,4 @@
1
-/*1059:*/
1
+/*1060:*/
2 2
 #line 135 "./scales.w"
3 3
 
4 4
 #include "scale.h"
@@ -10,7 +10,7 @@ QextSerialPort(port,QextSerialPort::EventDriven)
10 10
 connect(this,SIGNAL(readyRead()),this,SLOT(dataAvailable()));
11 11
 }
12 12
 
13
-/*:1059*//*1060:*/
13
+/*:1060*//*1061:*/
14 14
 #line 153 "./scales.w"
15 15
 
16 16
 void SerialScale::dataAvailable()
@@ -24,7 +24,7 @@ responseBuffer.clear();
24 24
 }
25 25
 else
26 26
 {
27
-/*1061:*/
27
+/*1062:*/
28 28
 #line 193 "./scales.w"
29 29
 
30 30
 QStringList responseParts= QString(responseBuffer.simplified()).split(' ');
@@ -53,7 +53,7 @@ unit= Units::Ounce;
53 53
 }
54 54
 emit newMeasurement(weight,unit);
55 55
 
56
-/*:1061*/
56
+/*:1062*/
57 57
 #line 165 "./scales.w"
58 58
 
59 59
 responseBuffer.clear();
@@ -61,7 +61,7 @@ responseBuffer.clear();
61 61
 }
62 62
 }
63 63
 
64
-/*:1060*//*1062:*/
64
+/*:1061*//*1063:*/
65 65
 #line 224 "./scales.w"
66 66
 
67 67
 void SerialScale::tare()
@@ -96,4 +96,4 @@ commandTerminator= "\x0A";
96 96
 }
97 97
 }
98 98
 
99
-/*:1062*/
99
+/*:1063*/

+ 2
- 2
src/scale.h View File

@@ -1,4 +1,4 @@
1
-/*1058:*/
1
+/*1059:*/
2 2
 #line 103 "./scales.w"
3 3
 
4 4
 #ifndef TypicaScaleInclude
@@ -29,4 +29,4 @@ QByteArray commandTerminator;
29 29
 
30 30
 #endif
31 31
 
32
-/*:1058*/
32
+/*:1059*/

+ 2213
- 1856
src/typica.cpp
File diff suppressed because it is too large
View File


Loading…
Cancel
Save