?? chatroom.h
字號:
#ifndef CHATROOM_H#define CHATROOM_H#include <QtGui>#include "client.h"class ChatRoom : public QDialog{ Q_OBJECTpublic:private: QVBoxLayout *vboxLayout; QHBoxLayout *hboxLayout; QHBoxLayout *hboxLayout1; QTextEdit textEdit; QListWidget listWidget; QLabel label; QLineEdit lineEdit; Client client; QString myNickName; QTextTableFormat tableFormat;public: ChatRoom(QWidget *parent = 0); ~ChatRoom();private: void Layout(); void createActions();public slots: void appendMessage(const QString &from, const QString &message);private slots: void returnPressed(); void newParticipant(const QString &nick); void participantLeft(const QString &nick); void showInformation();};#endif // CHATROOM_H
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -