48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
/***************************************************************************
|
|
|
|
libMiniCash
|
|
Copyright © 2013-2022 christoph holzheuer
|
|
c.holzheuer@sourceworx.org
|
|
|
|
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 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
#ifndef QDRIVESELECTOR_H
|
|
#define QDRIVESELECTOR_H
|
|
|
|
#include <QComboBox>
|
|
#include <QEvent>
|
|
#include <QtGui>
|
|
#include <QtCore>
|
|
|
|
#include <libMiniCash.h>
|
|
|
|
/**
|
|
* @brief Eine QComboBox zur Auswahl von Laufwerken.
|
|
*
|
|
* Mit dem QDriveSelektor wird ein Laufwerk(sbuchstabe)
|
|
* ausgewählt. Besonderheit: Beim Aktivieren werden ad hoc alle
|
|
* verfügbaren Laufwerke in die ComboBox geladen, um Fehleingaben
|
|
* zu reduzieren.
|
|
*/
|
|
|
|
class LIBMINICASH_EXPORT SWDriveSelector : public QComboBox
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit SWDriveSelector( QWidget* parent = nullptr );
|
|
virtual ~SWDriveSelector();
|
|
|
|
virtual bool event(QEvent* ev);
|
|
|
|
};
|
|
|
|
#endif // QDRIVESELECTOR_H
|