Logo Search packages:      
Sourcecode: kmess version File versions  Download package

balloonbase.cpp

/****************************************************************************
** Form implementation generated from reading ui file 'callinfobase.ui'
**
** Created: Mon Apr 1 16:25:51 2002
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "balloonbase.h"

#include <qhbox.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qsizepolicy.h>
#include <qtooltip.h>
#include <qvariant.h>
#include <qvbox.h>
#include <qwhatsthis.h>

#include <kurllabel.h>

#include "curvedwidget.h"

BalloonBase::BalloonBase( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl ),
      imageLabel_( 0 )
{

  if ( !name )
    setName( "Balloon" );
  setCaption( "" );

  balloonLayout_ = new QGridLayout( this, 2, 5, 25, 0, "balloonLayout");

  // this is supposed to be a configuration option - till then change this
  //  between 0 and 1 ;)
  if ( 1 )
  {
    imageLabel_ = new QLabel( this, "imageLabel" );
    imageLabel_->setScaledContents( false );
    balloonLayout_->addMultiCellWidget( imageLabel_, 0, 1, 0, 0 );

    balloonLayout_->addColSpacing( 1, 10 );
  }


  messageLabel_ = new KURLLabel( this, "messageLabel" );
  messageLabel_->setText( "" );
  messageLabel_->setAlignment( int( QLabel::AlignCenter | QLabel::AlignVCenter ) );
  messageLabel_->setSizePolicy( QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum) );
  messageLabel_->setUnderline( false );
  balloonLayout_->addMultiCellWidget( messageLabel_, 0, 1, 2, 2 );

  balloonLayout_->addColSpacing( 3, 10 );

  closeButton_ = new QLabel( this, "x" );
  closeButton_->setText( "x" );
  balloonLayout_->addMultiCellWidget( closeButton_, 0, 0, 4, 4, Qt::AlignTop | Qt::AlignCenter );

}

/*
 *  Destroys the object and frees any allocated resources
 */
BalloonBase::~BalloonBase()
{
    // no need to delete child widgets, Qt does it all for us
}


#include "balloonbase.moc"

Generated by  Doxygen 1.6.0   Back to index