⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pizzaentryimpl.cpp

📁 linux下运用QT进行编程的示例
💻 CPP
字号:
#include <qcheckbox.h>#include <qdatetime.h>#include <qmessagebox.h>#include "PizzaEntryImpl.h"/*  *  Constructs a PizzaEntryImpl which is a child of 'parent', with the  *  name 'name' and widget flags set to 'f'  * *  The dialog will by default be modeless, unless you set 'modal' to *  TRUE to construct a modal dialog. */PizzaEntryImpl::PizzaEntryImpl( QWidget* parent,  const char* name, bool modal, WFlags fl )    : PizzaEntry( parent, name, modal, fl ){  QDate date = QDate::currentDate();  if( date.dayOfWeek() == 2 ) CheckBox5->setChecked( true );  else CheckBox5->setChecked( false );}/*   *  Destroys the object and frees any allocated resources */PizzaEntryImpl::~PizzaEntryImpl(){    // no need to delete child widgets, Qt does it all for us}/*  * public slot */void PizzaEntryImpl::sendOrder(){  QMessageBox::information( this, "Pizza Entry Information","Your order has been sent. Your pizza will arrive in 30-45 minutes", QMessageBox::Ok );}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -