diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/kvilib/config/kvi_sourcesdate.h | 4 | ||||
| -rw-r--r-- | src/modules/dcc/chat.cpp | 21 | ||||
| -rw-r--r-- | src/modules/dcc/chat.h | 12 |
3 files changed, 22 insertions, 15 deletions
diff --git a/src/kvilib/config/kvi_sourcesdate.h b/src/kvilib/config/kvi_sourcesdate.h index cfa9a3a25..a72dd0fe8 100644 --- a/src/kvilib/config/kvi_sourcesdate.h +++ b/src/kvilib/config/kvi_sourcesdate.h @@ -36,8 +36,8 @@ * \def KVI_SOURCES_DATE Defines the sources date * \def KVI_SOURCES_DATE_NUMERIC Defines the sources date */ -#define KVI_SOURCES_DATE "20081119" -#define KVI_SOURCES_DATE_NUMERIC 0x20081119 +#define KVI_SOURCES_DATE "20081128" +#define KVI_SOURCES_DATE_NUMERIC 0x20081128 /** * \brief This is the date of the sources before that we should force a setup diff --git a/src/modules/dcc/chat.cpp b/src/modules/dcc/chat.cpp index 230dc6f94..f899b8cd1 100644 --- a/src/modules/dcc/chat.cpp +++ b/src/modules/dcc/chat.cpp @@ -48,7 +48,6 @@ #include "kvi_thread.h" #include "kvi_ircsocket.h" #include "kvi_settings.h" -#include "kvi_themedlabel.h" #include "kvi_socket.h" #include "kvi_app.h" #include "kvi_parameterlist.h" @@ -87,14 +86,18 @@ extern KviDccBroker * g_pDccBroker; KviDccChat::KviDccChat(KviFrame *pFrm,KviDccDescriptor * dcc,const char * name) : KviDccWindow(KVI_WINDOW_TYPE_DCCCHAT,pFrm,name,dcc) { - m_pTopSplitter = new QSplitter(Qt::Horizontal,this); - m_pTopSplitter->setObjectName("top_splitter"); - KviThemedLabel * dummy; - dummy = new KviThemedLabel(m_pTopSplitter,"dummy_label"); - KviTalVBox * box = new KviTalVBox(m_pTopSplitter); + m_pButtonBox = new KviTalHBox(this); + + m_pLabel = new KviThemedLabel(m_pButtonBox,"dcc_chat_label"); + m_pLabel->setAutoHeight(1); + m_pLabel->setText(name); + m_pButtonBox->setStretchFactor(m_pLabel,1); + + m_pButtonContainer= new KviTalHBox(m_pButtonBox); + createTextEncodingButton(m_pButtonContainer); #ifdef COMPILE_CRYPT_SUPPORT - createCryptControllerButton(box); + createCryptControllerButton(m_pButtonContainer); #endif m_pSplitter = new QSplitter(Qt::Horizontal,this); @@ -479,8 +482,8 @@ bool KviDccChat::event(QEvent *e) void KviDccChat::resizeEvent(QResizeEvent *) { int hght = m_pInput->heightHint(); - int hght2 = m_pTopSplitter->sizeHint().height(); - m_pTopSplitter->setGeometry(0,0,width(),hght2); + int hght2 = m_pButtonBox->sizeHint().height(); + m_pButtonBox->setGeometry(0,0,width(),hght2); m_pSplitter->setGeometry(0,hght2,width(),height() - (hght + hght2)); m_pInput->setGeometry(0,height() - hght,width(),hght); } diff --git a/src/modules/dcc/chat.h b/src/modules/dcc/chat.h index 326741d6a..26ca3033a 100644 --- a/src/modules/dcc/chat.h +++ b/src/modules/dcc/chat.h @@ -24,14 +24,15 @@ // //============================================================================= -#include "window.h" #include "descriptor.h" #include "thread.h" +#include "window.h" -#include "kvi_window.h" -#include "kvi_string.h" #include "kvi_databuffer.h" #include "kvi_pointerlist.h" +#include "kvi_themedlabel.h" +#include "kvi_string.h" +#include "kvi_window.h" #ifdef COMPILE_SSL_SUPPORT class KviSSL; @@ -69,11 +70,14 @@ class KviDccChat : public KviDccWindow public: KviDccChat(KviFrame *pFrm,KviDccDescriptor * dcc,const char * name); ~KviDccChat(); + QFrame * buttonContainer() { return (QFrame*)m_pButtonContainer; }; protected: KviDccChatThread * m_pSlaveThread; - QSplitter * m_pTopSplitter; QString m_szTarget; QString m_szLocalNick; + KviThemedLabel * m_pLabel; + KviTalHBox * m_pButtonBox; + KviTalHBox * m_pButtonContainer; protected: virtual const QString & target(); virtual void fillCaptionBuffers(); |
