aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/dcc/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/dcc/chat.cpp')
-rw-r--r--src/modules/dcc/chat.cpp21
1 files changed, 12 insertions, 9 deletions
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);
}