Struct bitcoin_qt::RecentRequestsTableModel
source · pub struct RecentRequestsTableModel { /* private fields */ }
Expand description
| Model for list of recently generated | payment requests / bitcoin: URIs. | | Part of wallet model. |
Implementations§
source§impl RecentRequestsTableModel
impl RecentRequestsTableModel
pub fn entry(&self, row: i32) -> &RecentRequestEntry
pub fn new(parent: *mut WalletModel) -> Self
sourcepub fn row_count(&self, parent: &QModelIndex) -> i32
pub fn row_count(&self, parent: &QModelIndex) -> i32
| @name Methods overridden from QAbstractTableModel |
pub fn column_count(&self, parent: &QModelIndex) -> i32
pub fn data(&self, index: &QModelIndex, role: i32) -> u32
pub fn set_data(&mut self, index: &QModelIndex, value: &u32, role: i32) -> bool
pub fn header_data(&self, section: i32, orientation: u32, role: i32) -> u32
sourcepub fn update_amount_column_title(&mut self)
pub fn update_amount_column_title(&mut self)
| Updates the column title to “Amount | (DisplayUnit)” and emits headerDataChanged() | signal for table headers to react. |
sourcepub fn get_amount_title(&mut self) -> String
pub fn get_amount_title(&mut self) -> String
| Gets title for amount column including | current display unit if optionsModel | reference available. |
pub fn index( &self, row: i32, column: i32, parent: Option<&QModelIndex> ) -> QModelIndex
pub fn remove_rows( &mut self, row: i32, count: i32, parent: Option<&QModelIndex> ) -> bool
pub fn flags(&self, index: &QModelIndex) -> u32
sourcepub fn add_new_request_with_send_coins_recipient(
&mut self,
recipient: &SendCoinsRecipient
)
pub fn add_new_request_with_send_coins_recipient( &mut self, recipient: &SendCoinsRecipient )
| called when adding a request from the | GUI |
sourcepub fn add_new_request_with_string(&mut self, recipient: &String)
pub fn add_new_request_with_string(&mut self, recipient: &String)
| called from ctor when loading from wallet |
sourcepub fn add_new_request_with_recent_request_entry(
&mut self,
recipient: &mut RecentRequestEntry
)
pub fn add_new_request_with_recent_request_entry( &mut self, recipient: &mut RecentRequestEntry )
| actually add to table in GUI |
pub fn sort(&mut self, column: i32, order: Option<u32>)
pub fn update_display_unit(&mut self)
Auto Trait Implementations§
impl !RefUnwindSafe for RecentRequestsTableModel
impl !Send for RecentRequestsTableModel
impl !Sync for RecentRequestsTableModel
impl Unpin for RecentRequestsTableModel
impl !UnwindSafe for RecentRequestsTableModel
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more