# HG changeset patch # User John Kern # Date 1270154195 25200 # Node ID 60c644f011c73e2c5cb795afbe6ea3702e594db0 # Parent f3dbeee07821d865e82318374d4f34fa3d66cfb4 fix for datebase skew diff -r f3dbeee07821 -r 60c644f011c7 Seafood/SeafoodTabbed.pro --- a/Seafood/SeafoodTabbed.pro Wed Mar 31 16:09:36 2010 -0700 +++ b/Seafood/SeafoodTabbed.pro Thu Apr 01 13:36:35 2010 -0700 @@ -19,7 +19,7 @@ FORMS += mainwindow.ui -databasefiles.sources = seafood.db +databasefiles.sources = populateDB/seafood.db databasefiles.path = . DEPLOYMENT += databasefiles diff -r f3dbeee07821 -r 60c644f011c7 Seafood/SeafoodTabbed.pro.user --- a/Seafood/SeafoodTabbed.pro.user Wed Mar 31 16:09:36 2010 -0700 +++ b/Seafood/SeafoodTabbed.pro.user Thu Apr 01 13:36:35 2010 -0700 @@ -170,7 +170,7 @@ Release Qt4ProjectManager.Qt4BuildConfiguration 0 - + C:\workspace\QtExamples\Seafood false 5 6 @@ -185,7 +185,7 @@ SeafoodTabbed.pro - COM23 + 0 1 diff -r f3dbeee07821 -r 60c644f011c7 Seafood/main.cpp --- a/Seafood/main.cpp Wed Mar 31 16:09:36 2010 -0700 +++ b/Seafood/main.cpp Thu Apr 01 13:36:35 2010 -0700 @@ -6,7 +6,7 @@ QApplication a(argc, argv); MainWindow w; w.createMenus(); - w.setWindowTitle("Seafood T"); + w.setWindowTitle("Seafood"); w.setStyleSheet("* { background-color:rgb(199,147,88); padding: 7px ; color:rgb(255,255,255)}"); #if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) w.showMaximized(); diff -r f3dbeee07821 -r 60c644f011c7 Seafood/mainwindow.ui --- a/Seafood/mainwindow.ui Wed Mar 31 16:09:36 2010 -0700 +++ b/Seafood/mainwindow.ui Thu Apr 01 13:36:35 2010 -0700 @@ -14,18 +14,18 @@ MainWindow - + - 60 - 80 + 0 + 0 258 242 - + 14 @@ -37,10 +37,27 @@ + + + Qt::Horizontal + + + + + + + Amount per serving + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + - + Source: USDA diff -r f3dbeee07821 -r 60c644f011c7 Seafood/seafood.db Binary file Seafood/seafood.db has changed diff -r f3dbeee07821 -r 60c644f011c7 Seafood/ui_mainwindow.h --- a/Seafood/ui_mainwindow.h Wed Mar 31 16:09:36 2010 -0700 +++ b/Seafood/ui_mainwindow.h Thu Apr 01 13:36:35 2010 -0700 @@ -1,7 +1,7 @@ /******************************************************************************** ** Form generated from reading UI file 'mainwindow.ui' ** -** Created: Mon Mar 29 16:27:58 2010 +** Created: Thu Apr 1 11:35:19 2010 ** by: Qt User Interface Compiler version 4.6.2 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -30,11 +31,13 @@ { public: QWidget *centralWidget; - QWidget *widget; + QWidget *layoutWidget; QVBoxLayout *verticalLayout; - QLabel *label; + QLabel *header; + QFrame *line; + QLabel *amountServing; QTableWidget *tableWidget; - QLabel *label_2; + QLabel *usda; QMenuBar *menuBar; QToolBar *mainToolBar; QStatusBar *statusBar; @@ -46,31 +49,44 @@ MainWindow->resize(361, 640); centralWidget = new QWidget(MainWindow); centralWidget->setObjectName(QString::fromUtf8("centralWidget")); - widget = new QWidget(centralWidget); - widget->setObjectName(QString::fromUtf8("widget")); - widget->setGeometry(QRect(60, 80, 258, 242)); - verticalLayout = new QVBoxLayout(widget); + layoutWidget = new QWidget(centralWidget); + layoutWidget->setObjectName(QString::fromUtf8("layoutWidget")); + layoutWidget->setGeometry(QRect(0, 0, 258, 242)); + verticalLayout = new QVBoxLayout(layoutWidget); verticalLayout->setSpacing(6); verticalLayout->setContentsMargins(11, 11, 11, 11); verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); verticalLayout->setContentsMargins(0, 0, 0, 0); - label = new QLabel(widget); - label->setObjectName(QString::fromUtf8("label")); + header = new QLabel(layoutWidget); + header->setObjectName(QString::fromUtf8("header")); QFont font; font.setPointSize(14); - label->setFont(font); + header->setFont(font); + + verticalLayout->addWidget(header); + + line = new QFrame(layoutWidget); + line->setObjectName(QString::fromUtf8("line")); + line->setFrameShape(QFrame::HLine); + line->setFrameShadow(QFrame::Sunken); - verticalLayout->addWidget(label); + verticalLayout->addWidget(line); - tableWidget = new QTableWidget(widget); + amountServing = new QLabel(layoutWidget); + amountServing->setObjectName(QString::fromUtf8("amountServing")); + amountServing->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); + + verticalLayout->addWidget(amountServing); + + tableWidget = new QTableWidget(layoutWidget); tableWidget->setObjectName(QString::fromUtf8("tableWidget")); verticalLayout->addWidget(tableWidget); - label_2 = new QLabel(widget); - label_2->setObjectName(QString::fromUtf8("label_2")); + usda = new QLabel(layoutWidget); + usda->setObjectName(QString::fromUtf8("usda")); - verticalLayout->addWidget(label_2); + verticalLayout->addWidget(usda); MainWindow->setCentralWidget(centralWidget); menuBar = new QMenuBar(MainWindow); @@ -92,8 +108,9 @@ void retranslateUi(QMainWindow *MainWindow) { MainWindow->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0, QApplication::UnicodeUTF8)); - label->setText(QApplication::translate("MainWindow", "Nutrition information", 0, QApplication::UnicodeUTF8)); - label_2->setText(QApplication::translate("MainWindow", "Source: USDA", 0, QApplication::UnicodeUTF8)); + header->setText(QApplication::translate("MainWindow", "Nutrition information", 0, QApplication::UnicodeUTF8)); + amountServing->setText(QApplication::translate("MainWindow", " Amount per serving", 0, QApplication::UnicodeUTF8)); + usda->setText(QApplication::translate("MainWindow", "Source: USDA", 0, QApplication::UnicodeUTF8)); } // retranslateUi };