/******************************************************************************
 * Copyright (C) 2011 Patrick Wacker
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 * Place, Suite 330, Boston, MA 02111-1307, USA.
 ******************************************************************************
 * Dont forget: svn propset svn:keywords "Date Author Rev HeadURL" filename
 ******************************************************************************
 * $HeadURL: http://schmufu.dyndns.org/svn/ab_transfers/tags/0.0.5.0/src/widgets/widgetlineeditwithlabel.h $
 * $Author: Patrick Wacker $
 * $Date: 2011-09-06 14:09:42 +0200 (Tue, 06 Sep 2011) $
 * $Rev: 74 $
 *
 * description:
 *
 *
 * changes not documented here, see svn
 *
 ******************************************************************************/

#ifndef WIDGETLINEEDITWITHLABEL_H
#define WIDGETLINEEDITWITHLABEL_H

#include <QWidget>

#include <QtGui/QLineEdit>

class QLabel;
class QLayout;

/*! \brief ein QLineEdit mit einem beschreibenden QLabel
 *
 * Das QLabel kann Links/Rechts/Oben/Unten vom Edit angezeigt werden.
 */

class widgetLineEditWithLabel : public QWidget
{
	Q_OBJECT
public:
	explicit widgetLineEditWithLabel(const QString &labelText,
					 const QString &editText = "",
					 Qt::Alignment labelAt = Qt::AlignTop,
					 QWidget *parent = 0);
	~widgetLineEditWithLabel();

public:
	QLineEdit *lineEdit;
	QLabel *label;

private:
	QLayout *mainLayout;


	void alignEditAndLabel(Qt::Alignment align);

signals:

public slots:

};

#endif // WIDGETLINEEDITWITHLABEL_H
