Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    [Dev] Documenting Feathercoin Specific Software settings - Part 7

    Technical Development
    2
    41
    9115
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • wrapper
      wrapper Moderators last edited by

      Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

      New FTC - SX being with f : - commit

      https://github.com/FeatherCoin/Feathercoin/commit/28db415a23acf074157787d96e783fe10d008459

      src/qt/splashscreen.cpp

      Splash screen update. Note : updated since.

      +    int paddingRight            = 230;
      

      Various file paddings changes

       -    QString copyrightText   = QChar(0xA9)+QString(" 2013-%1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Feathercoin Core developers"));
       +    QString copyrightText   = QChar(0xA9)+QString(" 2013-%1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Feathercoin developers"));
      

      Code replaced

       +    pixPaint.setPen(QColor(70,70,70));
      

      Screen co-ordinates update, various

       -    if(titleTextWidth > 160) {
       -        // strange font rendering, Arial probably not found
       -        fontFactor = 0.75;
       -    }
       -
      

      Code removed

       -    pixPaint.setFont(QFont(font, 15*fontFactor));
       -
       -    // if the version string is to long, reduce size
      

      Code removed

       -    int versionTextWidth  = fm.width(versionText);
      
       -    if(versionTextWidth > titleTextWidth+paddingRight     -10) {
       -        pixPaint.setFont(QFont(font, 10*fontFactor));
       -        titleVersionVSpace      -= 5;
       -    }
       -    pixPaint.drawText(newPixmap.width() -titleTextWidth -paddingRight+2+58,paddingTop+titleVersionVSpace,versionText);
      

      Code replaced

       +    pixPaint.drawText(newPixmap.width()-titleTextWidth-paddingRight,paddingTop+titleVersionVSpace,versionText);
      

      Code added

       -     // draw copyright stuff
       -    pixPaint.setFont(QFont(font, 10*fontFactor));
       -    pixPaint.drawText(newPixmap.width()-titleTextWidth-paddingRight+64,paddingTop+titleCopyrightVSpace,copyrightText);
      

      Code removed

       +    pixPaint.drawText(newPixmap.width()-titleTextWidth-paddingRight,paddingTop+titleCopyrightVSpace,copyrightText);
      

      Code added

       +        QFont boldFont = QFont(font, 9*fontFactor);
      

      Code replaced

      1 Reply Last reply Reply Quote 0
      • wrapper
        wrapper Moderators last edited by

        Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

        Update toolbar icons : - commit

        https://github.com/FeatherCoin/Feathercoin/commit/57bdea07bd0e3c38814368d6c0ca1190d3e8b4c9

        src/qt/res/icons/*

         src/qt/res/icons/toolbar.png
         src/qt/res/icons/toolbar_testnet.png
        

        Files added

        1 Reply Last reply Reply Quote 0
        • wrapper
          wrapper Moderators last edited by wrapper

          Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

          Set URI replace to 14 : - commit

          https://github.com/FeatherCoin/Feathercoin/commit/57bdea07bd0e3c38814368d6c0ca1190d3e8b4c9

          src/qt/guiutil.cpp

           -        uri.replace(0, 13, "feathercoin:");
           +        uri.replace(0, 14, "feathercoin:");
          

          Code replaced

          1 Reply Last reply Reply Quote 0
          • wrapper
            wrapper Moderators last edited by

            Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

            Remove merchant list : - commit

            https://github.com/FeatherCoin/Feathercoin/commit/bb84dccd0147c2e3d4d5080a4b7b05111ede8d69

            src/qt/Makefile.am

             -  forms/snapwidget.ui \
             +  forms/snapwidget.ui
             -  forms/merchantlist.ui 
            

            Code replaced

             -  moc_reportview.cpp \
             +  moc_reportview.cpp
             -  moc_merchantlist.cpp 
            

            Code replaced

             -  merchantlist.moc \
            

            Code removed

             -  reportview.h \
             +  reportview.h
             -  merchantlist.h
            

            Code replaced

             -  res/icons/merchantList.png \
            

            Code removed

             -  qimagesource.cpp \
             +  qimagesource.cpp
             -  merchantlist.cpp
            

            Code replaced

             -  res/images/about.png \
             +   res/images/about.png
             -  res/images/feathercoinmap.png \
             -  res/images/bitcoinbazaar.co.uk.png \
             -  res/images/pockio.png \
             -  res/images/btc     -e.png \
             -  res/images/bter.png \
             -  res/images/cm.png \
             -  res/images/cryptsy.png \
             -  res/images/ct.png \
             -  res/images/mc.png
            

            Code removed

            Wellenreiter 1 Reply Last reply Reply Quote 0
            • wrapper
              wrapper Moderators last edited by

              Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

              Remove merchant list : - commit

              https://github.com/FeatherCoin/Feathercoin/commit/bb84dccd0147c2e3d4d5080a4b7b05111ede8d69

              src/qt/bitcoingui.cpp

              Code removed

               -    merchantListAction = new QAction(QIcon(":/icons/merchantList"), tr("&MerchantList"), this);
               -    merchantListAction->setStatusTip(tr("Print merchant list"));
               -    merchantListAction->setToolTip(merchantListAction->statusTip());
               -    merchantListAction->setCheckable(true);
               -    merchantListAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_6));
               -    tabGroup->addAction(merchantListAction);
              

              Code removed

               -    connect(accountReportAction, SIGNAL(triggered()), this, SLOT(gotoAccountReportPage()));    
               -    connect(merchantListAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
               -    connect(merchantListAction, SIGNAL(triggered()), this, SLOT(gotoMerchantListPage()));
              
               +    connect(accountReportAction, SIGNAL(triggered()), this, SLOT(gotoAccountReportPage()));
              

              Code replaced

               -        advanced->addSeparator();
               -        advanced->addAction(merchantListAction);
              
               -        toolbar->addAction(merchantListAction);
              
               -    merchantListAction->setEnabled(enabled);
              
               -void BitcoinGUI::gotoMerchantListPage()
               -{
               -		merchantListAction->setChecked(true);
               -    if (walletFrame) walletFrame->gotoMerchantListPage();
               -}
               -
              

              Code removed

              1 Reply Last reply Reply Quote 0
              • wrapper
                wrapper Moderators last edited by wrapper

                Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                Remove merchant list : - commit

                https://github.com/FeatherCoin/Feathercoin/commit/bb84dccd0147c2e3d4d5080a4b7b05111ede8d69

                src/qt/bitcoingui.h

                 -    QAction *merchantListAction;
                
                 -    /** Switch to merchant list page */
                 -    void gotoMerchantListPage();
                

                Code removed

                1 Reply Last reply Reply Quote 0
                • wrapper
                  wrapper Moderators last edited by

                  Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                  Remove merchant list : - commit

                  https://github.com/FeatherCoin/Feathercoin/commit/bb84dccd0147c2e3d4d5080a4b7b05111ede8d69

                  src/qt/feathercoin.qrc

                   -        <file alias="merchantList">res/icons/merchantList.png</file>
                  
                   -        <file alias="merchant_map">res/images/feathercoinmap.png</file>
                   -        <file alias="merchant_e">res/images/btc-e.png</file>
                   -        <file alias="merchant_c">res/images/cryptsy.png</file>
                   -        <file alias="merchant_bter">res/images/bter.png</file>
                   -        <file alias="merchant_ct">res/images/ct.png</file>
                   -        <file alias="merchant_cm">res/images/cm.png</file>
                   -        <file alias="merchant_mc">res/images/mc.png</file>
                   -        <file alias="merchant_bitcoinbazaar">res/images/bitcoinbazaar.co.uk.png</file>
                   -        <file alias="merchant_pockio">res/images/pockio.png</file>
                   -        <file alias="merchant_shapeshift">res/images/shapeshift.png</file>
                   -        <file alias="merchant_bitbooks">res/images/bitbooks.png</file>
                   -        <file alias="merchant_coinverted">res/images/coinverted.png</file>
                   -        <file alias="merchant_bit">res/images/bittrex.png</file>
                   -        <file alias="merchant_bittylicious">res/images/bittylicious.png</file>
                   -        <file alias="merchant_vircurex">res/images/vircurex.png</file>
                  

                  Code removed

                  1 Reply Last reply Reply Quote 0
                  • wrapper
                    wrapper Moderators last edited by wrapper

                    Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                    Remove merchant list : - commit

                    https://github.com/FeatherCoin/Feathercoin/commit/bb84dccd0147c2e3d4d5080a4b7b05111ede8d69

                    Various removed files

                     src/qt/forms/merchantlist.ui
                     src/qt/merchantlist.cpp
                     src/qt/res/icons/merchantList.png
                     src/qt/res/images/bitbooks.png
                     src/qt/res/images/bitcoinbazaar.co.uk.png
                     src/qt/res/images/bittrex.png
                     src/qt/res/images/bittylicious.png
                     src/qt/res/images/btc-e.png
                     src/qt/res/images/bter.png
                     src/qt/res/images/cm.png
                     src/qt/res/images/coinverted.png
                     src/qt/res/images/cryptsy.png
                     src/qt/res/images/ct.png
                     src/qt/res/images/feathercoinmap.png
                     src/qt/res/images/mc.png
                     src/qt/res/images/pockio.png
                     src/qt/res/images/shapeshift.png
                     src/qt/res/images/vircurex.png
                    

                    Files removed

                    1 Reply Last reply Reply Quote 0
                    • wrapper
                      wrapper Moderators last edited by

                      Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                      Remove merchant list : - commit

                      https://github.com/FeatherCoin/Feathercoin/commit/bb84dccd0147c2e3d4d5080a4b7b05111ede8d69

                      Various files code removed

                      src/qt/walletframe.cpp

                       -void WalletFrame::gotoMerchantListPage()
                       -{
                       -    QMap<QString, WalletView*>::const_iterator i;
                       -    for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i)
                       -        i.value()->gotoMerchantListPage();
                       -}
                       -
                      

                      code removed

                      src/qt/walletframe.h

                       -    /** Switch to merchant list page */
                       -    void gotoMerchantListPage();
                       -    
                      

                      Code removed

                      src/qt/walletview.cpp

                       - #include "merchantlist.h"
                      
                       -    merchantlistPage = new MerchantListView();
                      
                       -    addWidget(merchantlistPage);
                      
                       -    merchantlistPage->setWalletModel(walletModel);
                      
                       -void WalletView::gotoMerchantListPage()
                       -{
                       -    setCurrentWidget(merchantlistPage); 
                       -}
                       -
                      

                      Code removed

                      src/qt/walletview.h

                       -class MerchantListView;
                      
                       -    MerchantListView *merchantlistPage;
                      
                      
                       -    /** Switch to merchant list page */
                       -    void gotoMerchantListPage();
                      

                      Code removed

                      1 Reply Last reply Reply Quote 0
                      • wrapper
                        wrapper Moderators last edited by

                        Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                        Update icons : - commit

                        https://github.com/FeatherCoin/Feathercoin/commit/68d03260581b1382bf3d472d108f9760c889485b

                        src/qt/res/icons/*

                         src/qt/res/icons/bitcoin.icns
                         src/qt/res/icons/bitcoin.ico
                         src/qt/res/icons/bitcoin.png
                         src/qt/res/icons/bitcoin_testnet.ico
                         src/qt/res/icons/bitcoin_testnet.png
                         src/qt/res/images/mainbg.png
                        

                        Icon images updated.

                        1 Reply Last reply Reply Quote 0
                        • wrapper
                          wrapper Moderators last edited by

                          Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                          Remove share balance : - commit

                          https://github.com/FeatherCoin/Feathercoin/commit/1445ef558b3f4f407b4c6fb074db09f5c60eb4fd

                          src/qt/forms/overviewpage.ui

                           -                 <item row="3" column="0">
                           -                  <widget class="QLabel" name="labelShareText">
                           -                   <property name="text">
                           -                    <string>Share</string>
                           -                   </property>
                           -                  </widget>
                           -                 </item>
                           -                 <item row="3" column="1">
                           -                  <widget class="QLabel" name="labelShare">
                           -                   <property name="font">
                           -                    <font>
                           -                     <family>System</family>
                           -                     <pointsize>10</pointsize>
                           -                     <weight>75</weight>
                           -                     <bold>true</bold>
                           -                    </font>
                           -                   </property>
                           -                   <property name="text">
                           -                    <string>0 FTC</string>
                           -                   </property>
                           -                   <property name="alignment">
                           -                    <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
                           -                   </property>
                           -                  </widget>
                           -                 </item>
                          

                          Code removed

                          1 Reply Last reply Reply Quote 0
                          • wrapper
                            wrapper Moderators last edited by

                            Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                            Remove share balance : - commit

                            https://github.com/FeatherCoin/Feathercoin/commit/1445ef558b3f4f407b4c6fb074db09f5c60eb4fd

                            src/qt/overviewpage.cpp

                             -    int shareBalance=0; //Ready for POS
                            
                             -    ui->labelShare->setText(BitcoinUnits::formatWithUnit(unit, shareBalance));
                            

                            Code removed

                            1 Reply Last reply Reply Quote 0
                            • wrapper
                              wrapper Moderators last edited by

                              Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                              fix api : - commit

                              https://github.com/FeatherCoin/Feathercoin/commit/cf030fe5436f8ca260684d5c7b3c788a4ecc130b

                              Move shapeshift api from http to https

                              src/qt/shiftdialog.cpp

                               -		manager->get(QNetworkRequest(QUrl("http://shapeshift.io/rate/ftc_btc")));
                              
                               +		manager->get(QNetworkRequest(QUrl("https://shapeshift.io/rate/ftc_btc")));
                              

                              Various exchange addresses are updated to be https . Additional coin exchanges are added

                               }		
                               + 					if(name_value.toString()=="ftc_ltc")
                               + 			    {
                               + 			        sw=11;
                               + 			    }
                              

                              Additional if statements to deal with additional cases.

                               + QString strURL="https://shapeshift.io/txStat/"+ui->txAddress->text();
                              
                               +	 network_request.setUrl(QUrl("https://shapeshift.io/shift"));
                              

                              Code replaced to https

                               +		manager->get(QNetworkRequest(QUrl("https://shapeshift.io/rate/ftc_btc")));
                              

                              Various code replaced https

                              1 Reply Last reply Reply Quote 0
                              • wrapper
                                wrapper Moderators last edited by

                                Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                                Standardise overviewpage : - commit

                                https://github.com/FeatherCoin/Feathercoin/commit/cf030fe5436f8ca260684d5c7b3c788a4ecc130b

                                User interface changes

                                contrib/feathercoin-qt.pro

                                contrib/bitcoin-qt.pro renamed? pro file not used as part of build now, although used in FTC for Qt temp storage when editing forms?

                                 +     ../src/qt/forms/qrcodedialog.ui \
                                
                                 +    ../src/qt/forms/shiftdialog.ui \
                                
                                 +    ../src/qt/forms/snapwidget.ui \
                                
                                 +    ../src/qt/bitcoin.qrc \
                                
                                 +    ../src/qt/feathercoin.qrc \   (error)
                                
                                1 Reply Last reply Reply Quote 0
                                • wrapper
                                  wrapper Moderators last edited by

                                  Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                                  Standardise overviewpage : - commit

                                  https://github.com/FeatherCoin/Feathercoin/commit/cf030fe5436f8ca260684d5c7b3c788a4ecc130b

                                  User interface changes

                                  src/qt/forms/overviewpage.ui

                                   -        <widget class="QLabel" name="labelMainlogo">
                                   -         <property name="text">
                                   -          <string/>
                                   -         </property>
                                   -         <property name="pixmap">
                                   -          <pixmap resource="../feathercoin.qrc">:/images/mainlogo</pixmap>
                                   -         </property>
                                   -         <property name="alignment">
                                  
                                   +        <widget class="QFrame" name="frame">
                                  
                                   +         <layout class="QVBoxLayout" name="verticalLayout_4">
                                  

                                  Examples of user interface changes, done through Qt.

                                  1 Reply Last reply Reply Quote 0
                                  • wrapper
                                    wrapper Moderators last edited by

                                    Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                                    Standardise overviewpage : - commit

                                    https://github.com/FeatherCoin/Feathercoin/commit/cf030fe5436f8ca260684d5c7b3c788a4ecc130b

                                    User interface changes

                                    src/qt/overviewpage.cpp

                                     -    bool showImmature =true; 
                                    
                                     +     // only show immature (newly mined) balance if it's non-zero, so as not to complicate things
                                     +     // for the non-mining users
                                     +     bool showImmature = immatureBalance != 0;
                                    

                                    Code replaced.

                                     -		setOverview();
                                     -}
                                     -
                                     -void OverviewPage::setOverview()
                                     -{
                                     -    ui->labelOverview1->setText(tr("Current Block :")+tr(" %1 ").arg(clientModel->getNumBlocks()));
                                     -    ui->labelOverview2->setText(tr("Current Difficulty :")+tr(" %1").arg(clientModel->getCurrDifficulty()));
                                    

                                    Code removed

                                     -        // Show RPC information when blocks had changed
                                     -        connect(model, SIGNAL(numBlocksChanged(int)), this, SLOT(setOverview()));
                                    

                                    Code removed

                                    1 Reply Last reply Reply Quote 0
                                    • wrapper
                                      wrapper Moderators last edited by

                                      Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                                      Standardise overviewpage : - commit

                                      https://github.com/FeatherCoin/Feathercoin/commit/cf030fe5436f8ca260684d5c7b3c788a4ecc130b

                                      User interface changes

                                      src/qt/overviewpage.h

                                       -    void setOverview();
                                      

                                      Code removed

                                      1 Reply Last reply Reply Quote 0
                                      • wrapper
                                        wrapper Moderators last edited by

                                        Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                                        Restore experimental notice : - commit

                                        https://github.com/FeatherCoin/Feathercoin/commit/81df7a613be84b00a61f3fd5dd601b3d9aafeceb

                                        User interface changes

                                        src/qt/forms/aboutdialog.ui

                                         -        <string>This is not experiment,This is our real life and great history.</string>
                                        
                                         +        <string>This is experimental software.</string>
                                        

                                        Feathercoin about message changed. Note : about and interface changes were updated later.

                                         -      <widget class="QLabel" name="label_8">
                                         -       <property name="text">
                                         -        <string>Our goal is to let you have a good time.</string>
                                         -       </property>
                                         -      </widget>
                                         -     </item>
                                         -     <item>
                                        

                                        About message removed, don’t remember this going in?

                                        1 Reply Last reply Reply Quote 0
                                        • wrapper
                                          wrapper Moderators last edited by

                                          Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                                          Restore experimental notice : - commit

                                          https://github.com/FeatherCoin/Feathercoin/commit/96aad5e0265f0892b8d8c434d9c54fb6d68bad5a

                                          User interface changes

                                          COPYING

                                           +  Copyright (c) 2013-2014 Feathercoin Developers
                                          

                                          One file updated, copyright. How to handle copy rights - just do a sweep / search and replace in one commit?

                                          1 Reply Last reply Reply Quote 0
                                          • wrapper
                                            wrapper Moderators last edited by

                                            Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                                            fix Total Line 1 : - commit

                                            https://github.com/FeatherCoin/Feathercoin/commit/3307d437c2fb98806ee2a83bc5e7455d7985b0a4

                                            User interface changes

                                            src/qt/reportview.cpp

                                             +     //view->setFixedHeight(360);
                                             
                                                   vlayout->addWidget(view);
                                            
                                             +     
                                             +     QTableView *viewT = new QTableView(this);
                                             +     viewT->setFixedHeight(26);
                                             + 		vlayout->addWidget(viewT);
                                            

                                            fix Total Line 1 Code added.

                                             +    reportViewT=viewT;
                                            

                                            Code added

                                             -   reportView->setShowGrid(false);
                                            
                                             +   reportView->setShowGrid(false);        
                                             +
                                             +   reportModelT = new QStandardItemModel(this);
                                             +   reportViewT->setModel(reportModelT);
                                             +   reportViewT->setAlternatingRowColors(true);
                                             +   reportViewT->setSelectionBehavior(QAbstractItemView::SelectRows);
                                             +   reportViewT->setSelectionMode(QAbstractItemView::ExtendedSelection);
                                             +   reportViewT->verticalHeader()->hide();
                                             +   reportViewT->setShowGrid(false);  
                                             +         
                                            

                                            Code replaced / added.

                                             -	  reportModel->setRowCount(addresslist.size()+1); 
                                            +	  reportModel->setRowCount(addresslist.size());
                                            

                                            Code replaced

                                             - reportModel->setItem(i,0,new QStandardItem(tr("Total")));
                                             - reportModel->setItem(i,1,new QStandardItem(dateWidget->currentText()));
                                             - reportModel->setItem(i,2,new QStandardItem(typeWidget->currentText()));
                                             - reportModel->setItem(i,3,new QStandardItem(QObject::tr("%1").arg(QObject::tr("%1").arg(fTotal))));
                                             - reportModel->setItem(i,4,new QStandardItem(QObject::tr("%1").arg(iTimes)));
                                             - reportModel->item(i,0)->setTextAlignment(Qt::AlignCenter);
                                             - reportModel->item(i,2)->setTextAlignment(Qt::AlignCenter);
                                             - reportModel->item(i,3)->setTextAlignment(Qt::AlignCenter);
                                             - reportModel->item(i,4)->setTextAlignment(Qt::AlignCenter);
                                             - reportModel->item(i,0)->setFont(QFont("Times", 10, QFont::Black));
                                             - reportModel->item(i,1)->setFont(QFont("Times", 10, QFont::Black));
                                             - reportModel->item(i,2)->setFont(QFont("Times", 10, QFont::Black));
                                             - reportModel->item(i,3)->setFont(QFont("Times", 10, QFont::Black));
                                             - reportModel->item(i,4)->setFont(QFont("Times", 10, QFont::Black));
                                            

                                            Code removed

                                             +     //Total Line
                                             +     reportModelT->clear();
                                             +     reportModelT->setRowCount(1); 
                                             +     reportModelT->setHorizontalHeaderItem(0, new QStandardItem(tr("AddressLabel")));
                                             +     reportModelT->setHorizontalHeaderItem(1, new QStandardItem(tr("DateRange")));
                                             +    	reportModelT->setHorizontalHeaderItem(2, new QStandardItem(tr("Type")));
                                             +     reportModelT->setHorizontalHeaderItem(3, new QStandardItem(tr("Payment amount")));
                                             +     reportModelT->setHorizontalHeaderItem(4, new QStandardItem(tr("Number of payments")));
                                             +     reportViewT->horizontalHeader()->resizeSection(0, 270);
                                             +     reportViewT->horizontalHeader()->resizeSection(1, 120);
                                             +     reportViewT->horizontalHeader()->resizeSection(2, 120);
                                             +     reportViewT->horizontalHeader()->resizeSection(3, 140);
                                             +     reportViewT->horizontalHeader()->resizeSection(4, 140);
                                             +   	reportModelT->setItem(0,0,new QStandardItem(tr("Total")));
                                             +   	reportModelT->setItem(0,1,new QStandardItem(dateWidget->currentText()));
                                             +   	reportModelT->setItem(0,2,new QStandardItem(typeWidget->currentText()));
                                             +   	reportModelT->setItem(0,3,new QStandardItem(QObject::tr("%1").arg(QObject::tr("%1").arg(fTotal))));
                                             +     reportModelT->setItem(0,4,new QStandardItem(QObject::tr("%1").arg(iTimes)));
                                             +     reportModelT->item(0,0)->setTextAlignment(Qt::AlignCenter);
                                             +     reportModelT->item(0,1)->setTextAlignment(Qt::AlignCenter);
                                             +     reportModelT->item(0,2)->setTextAlignment(Qt::AlignCenter);
                                             +     reportModelT->item(0,3)->setTextAlignment(Qt::AlignCenter);
                                             +     reportModelT->item(0,4)->setTextAlignment(Qt::AlignCenter);
                                             +     reportModelT->item(0,0)->setFont(QFont("Times", 10, QFont::Black));
                                             +     reportModelT->item(0,1)->setFont(QFont("Times", 10, QFont::Black));
                                             +     reportModelT->item(0,2)->setFont(QFont("Times", 10, QFont::Black));
                                             +     reportModelT->item(0,3)->setFont(QFont("Times", 10, QFont::Black));
                                             +     reportModelT->item(0,4)->setFont(QFont("Times", 10, QFont::Black));
                                             +     reportViewT->horizontalHeader()->hide();
                                            

                                            Code replaced.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post