Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.h
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
/** Copy a field of the currently selected entry of a view to the clipboard. | /** Copy a field of the currently selected entry of a view to the clipboard. | ||||
Does nothing if nothing | Does nothing if nothing | ||||
is selected. | is selected. | ||||
@param[in] column Data column to extract from the model | @param[in] column Data column to extract from the model | ||||
@param[in] role Data role to extract from the model | @param[in] role Data role to extract from the model | ||||
@see TransactionView::copyLabel, TransactionView::copyAmount, | @see TransactionView::copyLabel, TransactionView::copyAmount, | ||||
TransactionView::copyAddress | TransactionView::copyAddress | ||||
*/ | */ | ||||
void copyEntryData(QAbstractItemView *view, int column, | void copyEntryData(const QAbstractItemView *view, int column, | ||||
int role = Qt::EditRole); | int role = Qt::EditRole); | ||||
/** Return a field of the currently selected entry as a QString. Does nothing if | /** Return a field of the currently selected entry as a QString. Does nothing if | ||||
nothing | nothing | ||||
is selected. | is selected. | ||||
@param[in] column Data column to extract from the model | @param[in] column Data column to extract from the model | ||||
@see TransactionView::copyLabel, TransactionView::copyAmount, | @see TransactionView::copyLabel, TransactionView::copyAmount, | ||||
TransactionView::copyAddress | TransactionView::copyAddress | ||||
*/ | */ | ||||
QList<QModelIndex> getEntryData(QAbstractItemView *view, int column); | QList<QModelIndex> getEntryData(const QAbstractItemView *view, int column); | ||||
/** | |||||
* Returns true if the specified field of the currently selected view entry is | |||||
* not empty. | |||||
* @param[in] column Data column to extract from the model | |||||
* @param[in] role Data role to extract from the model | |||||
* @see TransactionView::contextualMenu | |||||
*/ | |||||
bool hasEntryData(const QAbstractItemView *view, int column, int role); | |||||
void setClipboard(const QString &str); | void setClipboard(const QString &str); | ||||
/** | /** | ||||
* Determine default data directory for operating system. | * Determine default data directory for operating system. | ||||
*/ | */ | ||||
QString getDefaultDataDirectory(); | QString getDefaultDataDirectory(); | ||||
▲ Show 20 Lines • Show All 215 Lines • Show Last 20 Lines |