"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/krenamelistview.h" between
krename-4.0.9.tar.gz and krename-4.90.90.tar.gz

About: KRename is a batch file-renamer (KDE).

krenamelistview.h  (krename-4.0.9):krenamelistview.h  (krename-4.90.90)
skipping to change at line 18 skipping to change at line 18
/*************************************************************************** /***************************************************************************
* * * *
* This program is free software; you can redistribute it and/or modify * * 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 * * it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (at your option) any later version. *
* * * *
***************************************************************************/ ***************************************************************************/
#ifndef KRENAME_LIST_VIEW_H_ #ifndef KRENAME_LIST_VIEW_H
#define KRENAME_LIST_VIEW_H_ #define KRENAME_LIST_VIEW_H
#include <QListView> #include <QListView>
class QPaintEvent;
class QTextDocument;
/** /**
* This is a QListView implementation * This is a QListView implementation
* that shows additional information * that shows additional information
* if there are no items in the list * if there are no items in the list
* view. * view.
*/ */
class KRenameListView : public QListView { class KRenameListView : public QListView
{
Q_OBJECT Q_OBJECT
public: public:
KRenameListView(QWidget* parent); explicit KRenameListView(QWidget *parent);
virtual ~KRenameListView() { } virtual ~KRenameListView() { }
/** /**
* Specify the info widget to display * Specify the info widget to display
* if the listview contains no items. * if the listview contains no items.
* *
* The widget will be owned by the KRenameListView. * The widget will be owned by the KRenameListView.
* *
* @param w use widget as info widget * @param w use widget as info widget
*/ */
inline void setInfoWidget(QWidget* w); inline void setInfoWidget(QWidget *w);
public slots: public Q_SLOTS:
void slotUpdateCount(); void slotUpdateCount();
protected: protected:
virtual void resizeEvent(QResizeEvent* e); virtual void resizeEvent(QResizeEvent *e);
private: private:
/** /**
* Position the information widget * Position the information widget
* and hide/show if necessary. * and hide/show if necessary.
*/ */
void positionLabel(); void positionLabel();
private: private:
QWidget* m_label; ///< The information widget QWidget *m_label; ///< The information widget
}; };
inline void KRenameListView::setInfoWidget(QWidget* w) inline void KRenameListView::setInfoWidget(QWidget *w)
{ {
m_label = w; m_label = w;
m_label->setParent(this); m_label->setParent(this);
positionLabel(); positionLabel();
} }
#endif // KRENAME_LIST_VIEW_H_ #endif // KRENAME_LIST_VIEW_H
 End of changes. 10 change blocks. 
12 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)