• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ QXT_INIT_PRIVATE函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中QXT_INIT_PRIVATE函数的典型用法代码示例。如果您正苦于以下问题:C++ QXT_INIT_PRIVATE函数的具体用法?C++ QXT_INIT_PRIVATE怎么用?C++ QXT_INIT_PRIVATE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了QXT_INIT_PRIVATE函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: QMessageBox

/*!
    Constructs a new QxtConfirmationMessage with \a icon, \a title, \a text, \a confirmation, \a buttons, \a parent and \a flags.
 */
QxtConfirmationMessage::QxtConfirmationMessage(QMessageBox::Icon icon, const QString& title, const QString& text, const QString& confirmation,
        QMessageBox::StandardButtons buttons, QWidget* parent, Qt::WindowFlags flags)
        : QMessageBox(icon, title, text, buttons, parent, flags)
{
    QXT_INIT_PRIVATE(QxtConfirmationMessage);
    qxt_d().init(confirmation);
}
开发者ID:mcu786,项目名称:OpenPilot-1,代码行数:10,代码来源:qxtconfirmationmessage.cpp


示例2: QAbstractScrollArea

QxtScheduleView::QxtScheduleView(QWidget *parent)
        : QAbstractScrollArea(parent)
{
    QXT_INIT_PRIVATE(QxtScheduleView);

    /*standart values are 15 minutes per cell and 69 rows == 1 Day*/
    qxt_d().m_currentZoomDepth = 15 * 60;
    qxt_d().m_currentViewMode  = DayView;
    qxt_d().m_startUnixTime    = QDateTime(QDate::currentDate(),QTime(0, 0, 0)).toTime_t();
    qxt_d().m_endUnixTime      = QDateTime(QDate::currentDate().addDays(6),QTime(23, 59, 59)).toTime_t();
    qxt_d().delegate = qxt_d().defaultDelegate = new QxtScheduleItemDelegate(this);

#if 0
    qxt_d().m_vHeader = new QxtScheduleHeaderWidget(Qt::Vertical, this);
    connect(qxt_d().m_vHeader, SIGNAL(geometriesChanged()), this, SLOT(updateGeometries()));
    qxt_d().m_vHeader->hide();

    qxt_d().m_hHeader = new QxtScheduleHeaderWidget(Qt::Horizontal, this);
    connect(qxt_d().m_hHeader, SIGNAL(geometriesChanged()), this, SLOT(updateGeometries()));
    qxt_d().m_hHeader->hide();
#else
    //init will take care of initializing headers
    qxt_d().m_vHeader = 0;
    qxt_d().m_hHeader = 0;
#endif

}
开发者ID:vietlq,项目名称:cpp,代码行数:27,代码来源:qxtscheduleview.cpp


示例3: QObject

/*!
 * Creates a QxtRPCService object with the given \a parent.
 */
QxtRPCService::QxtRPCService(QObject* parent) : QObject(parent)
{
    // Every QxtRPCService object has two private worker objects.
    // QxtRPCServicePrivate is responsible for most of the heavy lifting.
    QXT_INIT_PRIVATE(QxtRPCService);
    // QxtRPCServiceIntrospector is responsible for capturing and processing incoming signals.
    qxt_d().introspector = new QxtRPCServiceIntrospector(this);
}
开发者ID:MorS25,项目名称:OpenPilot,代码行数:11,代码来源:qxtrpcservice.cpp


示例4: QObject

/*!
 * Contructs a new QxtFileLock. The lock is not activated.
 * \a file the file that should be locked
 * \a offset the offset where the lock starts
 * \a length the length of the lock
 * \a mode the lockmode
 */
QxtFileLock::QxtFileLock(QFile *file, const off_t offset, const off_t length, const QxtFileLock::Mode mode) : QObject(file)
{
    QXT_INIT_PRIVATE(QxtFileLock);
    connect(file, SIGNAL(aboutToClose()), this, SLOT(unlock()));
    qxt_d().offset = offset;
    qxt_d().length = length;
    qxt_d().mode = mode;
}
开发者ID:01iv3r,项目名称:OpenPilot,代码行数:15,代码来源:qxtfilelock.cpp


示例5: QLineEdit

QxtLookupLineEdit::QxtLookupLineEdit(QWidget *parent)
    : QLineEdit(parent)
{
    QXT_INIT_PRIVATE(QxtLookupLineEdit);
    qxt_d().m_dataColumn = qxt_d().m_lookupColumn = 0;
    qxt_d().m_lookupRole = Qt::DisplayRole;
    qxt_d().m_sourceModel = 0;
}
开发者ID:develnk,项目名称:qxtweb-qt5,代码行数:8,代码来源:qxtlookuplineedit.cpp


示例6: QAbstractSlider

/*!
    Constructs a new QxtStars with \a parent.
 */
QxtStars::QxtStars(QWidget* parent) : QAbstractSlider(parent)
{
    QXT_INIT_PRIVATE(QxtStars);
    setOrientation(Qt::Horizontal);
    setFocusPolicy(Qt::FocusPolicy(style()->styleHint(QStyle::SH_Button_FocusPolicy)));
    setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
    setRange(0, 5);
}
开发者ID:develnk,项目名称:qxtweb-qt5,代码行数:11,代码来源:qxtstars.cpp


示例7: ServerProtocolInstanceIODevice

/**
 * The constructor sets some default values in preperation for the connection
 * @param serv Initialized pointer to the active Server ocject
 * @param parentOptional parent for the QObject
 */
ServerProtocolInstanceSocket::ServerProtocolInstanceSocket(Server *serv, QObject *parent) : ServerProtocolInstanceIODevice(serv, parent)
{
	QXT_INIT_PRIVATE(ServerProtocolInstanceSocket);
	qxt_d().sd = -1;
	qxt_d().pid = 0;
	qxt_d().uid = 0;
	qxt_d().gid = 0;
}
开发者ID:SiteView,项目名称:QtRPC2,代码行数:13,代码来源:serverprotocolinstancesocket.cpp


示例8: QXT_INIT_PRIVATE

QxtIrcMessage::QxtIrcMessage(const QxtIrcMessage &msg)
{
	QXT_INIT_PRIVATE(QxtIrcMessage);
	qxt_d().from = msg.qxt_d().from;
	qxt_d().to = msg.qxt_d().to;
	qxt_d().cmd = msg.qxt_d().cmd;
	qxt_d().args.clear();
	qxt_d().args = msg.qxt_d().args;
}
开发者ID:brendan0powers,项目名称:Random-Projects,代码行数:9,代码来源:qxtircmessage.cpp


示例9: QObject

/**
 * Constructor, associates with the server.
 * @param server Initialized pointer to the Server object.
 */
ServerProtocolListenerBase::ServerProtocolListenerBase(Server *server)// : QObject(parent)
{
	QXT_INIT_PRIVATE(ServerProtocolListenerBase);
	if (QPointer<Server>(server).isNull())
	{
		qFatal("Fatal Error: ServerProtocolListener was passed a NULL Server* object.");
	}
	qxt_d().serv = server;
}
开发者ID:markusmarx,项目名称:QtRpc2,代码行数:13,代码来源:serverprotocollistenerbase.cpp


示例10: QObject

QxtMDNS::QxtMDNS(int id, QObject* parent)
		: QObject(parent)
{
	QXT_INIT_PRIVATE(QxtMDNS);
	qxt_d().info = id;
	qxt_d().client = NULL;
	qxt_d().recordbrowser = NULL;
	qxt_d().sent = false;
}
开发者ID:01iv3r,项目名称:OpenPilot,代码行数:9,代码来源:qxtmdns_avahi.cpp


示例11: QxtAbstractHttpConnector

/*!
 * Creates a QxtHttpServerConnector with the given \a parent and \a server.
 *
 * You may pass a QTcpServer subclass to the \a server parameter to enable customized behaviors, for
 * instance to use QSslSocket like QxtHttpsServerConnector does. Pass 0 (the default) to \a server
 * to allow QxtHttpServerConnector to create its own QTcpServer.
 */
QxtHttpServerConnector::QxtHttpServerConnector(QObject* parent, QTcpServer* server) : QxtAbstractHttpConnector(parent)
{
    QXT_INIT_PRIVATE(QxtHttpServerConnector);
    if(server)
        qxt_d().server = server;
    else
        qxt_d().server = new QTcpServer(this);
    QObject::connect(qxt_d().server, SIGNAL(newConnection()), this, SLOT(acceptConnection()));
}
开发者ID:npsm,项目名称:libqxt,代码行数:16,代码来源:qxthttpserverconnector.cpp


示例12: QXT_INIT_PRIVATE

/*!
    Constructor.
 */
QxtBasicSTDLoggerEngine::QxtBasicSTDLoggerEngine()
{
    QXT_INIT_PRIVATE(QxtBasicSTDLoggerEngine);
#ifndef QT_NO_DEBUG
    setLogLevelsEnabled(QXT_REQUIRED_LEVELS);
#else
    setLogLevelsEnabled(QXT_REQUIRED_LEVELS | QxtLogger::DebugLevel);
#endif
    enableLogging();
}
开发者ID:Zhentar,项目名称:dwarftherapist,代码行数:13,代码来源:qxtbasicstdloggerengine.cpp


示例13: QTableWidget

/*!
    Constructs a new QxtTableWidget with \a parent.
 */
QxtTableWidget::QxtTableWidget(QWidget* parent)
        : QTableWidget(parent)
{
    QXT_INIT_PRIVATE(QxtTableWidget);
    setItemPrototype(new QxtTableWidgetItem);
    QxtItemDelegate* delegate = new QxtItemDelegate(this);
    connect(delegate, SIGNAL(editingStarted(const QModelIndex&)),
            &qxt_d(), SLOT(informStartEditing(const QModelIndex&)));
    connect(delegate, SIGNAL(editingFinished(const QModelIndex&)),
            &qxt_d(), SLOT(informFinishEditing(const QModelIndex&)));
    setItemDelegate(delegate);
}
开发者ID:beneon,项目名称:MITK,代码行数:15,代码来源:qxttablewidget.cpp


示例14: QTreeWidget

/*!
    Constructs a new QxtTreeWidget with \a parent.
 */
QxtTreeWidget::QxtTreeWidget(QWidget* parent) : QTreeWidget(parent)
{
    QXT_INIT_PRIVATE(QxtTreeWidget);
    QxtItemDelegate* delegate = new QxtItemDelegate(this);
    connect(delegate, SIGNAL(editingStarted(const QModelIndex&)),
            &qxt_d(), SLOT(informStartEditing(const QModelIndex&)));
    connect(delegate, SIGNAL(editingFinished(const QModelIndex&)),
            &qxt_d(), SLOT(informFinishEditing(const QModelIndex&)));
    connect(this, SIGNAL(itemPressed(QTreeWidgetItem*, int)),
            &qxt_d(), SLOT(expandCollapse(QTreeWidgetItem*)));
    setItemDelegate(delegate);
}
开发者ID:MorS25,项目名称:OpenPilot,代码行数:15,代码来源:qxttreewidget.cpp


示例15: ClientProtocolIODevice

/**
	 * The constructor initializes the socket and the timeout timer and connects all the needed signals and slots. The constructor also calls ClientProtocolIODevice::prepareDevice() to prepare the socket for use.
 * @param parent Optional parent for the QObject
 */
ClientProtocolTcp::ClientProtocolTcp(QObject *parent) : ClientProtocolIODevice(parent)
{
	QXT_INIT_PRIVATE(ClientProtocolTcp);
	qxt_d().timer.setInterval(10000);
	connect(&qxt_d().timer, SIGNAL(timeout()), &qxt_d(), SLOT(ping()));
#ifndef QT_NO_OPENSSL
	connect(&qxt_d().socket, SIGNAL(sslErrors(QList<QSslError>)), &qxt_d().socket, SLOT(ignoreSslErrors()));
#endif
	connect(&qxt_d().socket, SIGNAL(disconnected()), &qxt_d().timer, SLOT(stop()));
	connect(&qxt_d().socket, SIGNAL(disconnected()), this, SIGNAL(disconnected()));
	qxt_d().lastPing = QDateTime::currentDateTime();
	prepareDevice(&qxt_d().socket);
}
开发者ID:balashovartem,项目名称:QtRpc2,代码行数:17,代码来源:clientprotocoltcp.cpp


示例16: QComboBox

/*!
    Constructs a new QxtCountryComboBox with \a parent.
 */
QxtCountryComboBox::QxtCountryComboBox(QWidget* parent)
        : QComboBox(parent)
{
    QXT_INIT_PRIVATE(QxtCountryComboBox);
#ifdef QXT_DESIGNER_MODE
    setEditable(false);
#else
    setModel(new QxtCountryModel(this));
    setModelColumn(0);

    setCurrentCountry(QLocale::system().country());
#endif

    connect(this, SIGNAL(currentIndexChanged(int)), &qxt_d(), SLOT(comboBoxCurrentIndexChanged(int)));
}
开发者ID:01iv3r,项目名称:OpenPilot,代码行数:18,代码来源:qxtcountrycombobox.cpp


示例17: QObject

QxtSmtp::QxtSmtp(QObject* parent) : QObject(parent)
{
    QXT_INIT_PRIVATE(QxtSmtp);
    qxt_d().state = QxtSmtpPrivate::Disconnected;
    qxt_d().nextID = 0;
#ifndef QT_NO_OPENSSL
    qxt_d().socket = new QSslSocket(this);
    QObject::connect(socket(), SIGNAL(encrypted()), this, SIGNAL(encrypted()));
    //QObject::connect(socket(), SIGNAL(encrypted()), &qxt_d(), SLOT(ehlo()));
#else
    qxt_d().socket = new QTcpSocket(this);
#endif
    QObject::connect(socket(), SIGNAL(connected()), this, SIGNAL(connected()));
    QObject::connect(socket(), SIGNAL(disconnected()), this, SIGNAL(disconnected()));
    QObject::connect(socket(), SIGNAL(error(QAbstractSocket::SocketError)), &qxt_d(), SLOT(socketError(QAbstractSocket::SocketError)));
    QObject::connect(this, SIGNAL(authenticated()), &qxt_d(), SLOT(sendNext()));
    QObject::connect(socket(), SIGNAL(readyRead()), &qxt_d(), SLOT(socketRead()));
}
开发者ID:01iv3r,项目名称:OpenPilot,代码行数:18,代码来源:qxtsmtp.cpp


示例18: QxtPipe

/*!
    Constructs a new QxtStdio with \a parent.
 */
QxtStdio::QxtStdio(QObject * parent): QxtPipe(parent)
{
    QXT_INIT_PRIVATE(QxtStdio);

    setvbuf(stdin , NULL , _IONBF , 0);
    setvbuf(stdout , NULL , _IONBF , 0);

    setOpenMode(QIODevice::ReadWrite);
    qxt_d().notify = new QSocketNotifier(

#ifdef Q_CC_MSVC
        _fileno(stdin)
#else
        fileno(stdin)
#endif

        , QSocketNotifier::Read, this);
    QObject::connect(qxt_d().notify, SIGNAL(activated(int)), &qxt_d(), SLOT(activated(int)));
}
开发者ID:develnk,项目名称:qxtweb-qt5,代码行数:22,代码来源:qxtstdio.cpp


示例19: QComboBox

/*!
    Constructs a new QxtCheckComboBox with \a parent.
 */
QxtCheckComboBox::QxtCheckComboBox(QWidget* parent) : QComboBox(parent)
{
    QXT_INIT_PRIVATE(QxtCheckComboBox);
    setModel(new QxtCheckComboModel(this));
    connect(this, SIGNAL(activated(int)), &qxt_d(), SLOT(toggleCheckState(int)));
    connect(model(), SIGNAL(checkStateChanged()), &qxt_d(), SLOT(updateCheckedItems()));
    connect(model(), SIGNAL(rowsInserted(const QModelIndex &, int, int)), &qxt_d(), SLOT(updateCheckedItems()));
    connect(model(), SIGNAL(rowsRemoved(const QModelIndex &, int, int)), &qxt_d(), SLOT(updateCheckedItems()));

    // read-only contents
    QLineEdit* lineEdit = new QLineEdit(this);
    lineEdit->setReadOnly(true);
    setLineEdit(lineEdit);
    setInsertPolicy(QComboBox::NoInsert);

    view()->installEventFilter(&qxt_d());
    view()->window()->installEventFilter(&qxt_d());
    view()->viewport()->installEventFilter(&qxt_d());
    this->installEventFilter(&qxt_d());
}
开发者ID:MorS25,项目名称:OpenPilot,代码行数:23,代码来源:qxtcheckcombobox.cpp


示例20: QAbstractTableModel

QxtCsvModel::QxtCsvModel(QObject *parent) : QAbstractTableModel(parent)
{
    QXT_INIT_PRIVATE(QxtCsvModel);
}
开发者ID:npsm,项目名称:libqxt,代码行数:4,代码来源:qxtcsvmodel.cpp



注:本文中的QXT_INIT_PRIVATE函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ Q_函数代码示例发布时间:2022-05-30
下一篇:
C++ QVector4D函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap