本文整理汇总了C++中Global::getColumnWidth方法的典型用法代码示例。如果您正苦于以下问题:C++ Global::getColumnWidth方法的具体用法?C++ Global::getColumnWidth怎么用?C++ Global::getColumnWidth使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Global
的用法示例。
在下文中一共展示了Global::getColumnWidth方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: resizeColumns
// Change the size of the columns (used after restarting)
void NTableView::resizeColumns() {
int width = global.getColumnWidth("noteTableAltitudePosition");
if (width>0) setColumnWidth(NOTE_TABLE_ALTITUDE_POSITION, width);
width = global.getColumnWidth("noteTableAuthorPosition");
if (width>0) setColumnWidth(NOTE_TABLE_AUTHOR_POSITION, width);
width = global.getColumnWidth("noteTableDateCreatedPosition");
if (width>0) setColumnWidth(NOTE_TABLE_DATE_CREATED_POSITION, width);
width = global.getColumnWidth("noteTableDateDeletedPosition");
if (width>0) setColumnWidth(NOTE_TABLE_DATE_DELETED_POSITION, width);
width = global.getColumnWidth("noteTableDateSubjectPosition");
if (width>0) setColumnWidth(NOTE_TABLE_DATE_SUBJECT_POSITION, width);
width = global.getColumnWidth("noteTableDateUpdatedPosition");
if (width>0) setColumnWidth(NOTE_TABLE_DATE_UPDATED_POSITION, width);
width = global.getColumnWidth("noteTableHasEncryptionPosition");
if (width>0) setColumnWidth(NOTE_TABLE_HAS_ENCRYPTION_POSITION, width);
width = global.getColumnWidth("noteTableTodoPosition");
if (width>0) setColumnWidth(NOTE_TABLE_HAS_TODO_POSITION, width);
width = global.getColumnWidth("noteTableIsDirtyPosition");
if (width>0) setColumnWidth(NOTE_TABLE_IS_DIRTY_POSITION, width);
width = global.getColumnWidth("noteTableLatitudePosition");
if (width>0) setColumnWidth(NOTE_TABLE_LATITUDE_POSITION, width);
width = global.getColumnWidth("noteTableLidPosition");
if (width>0) setColumnWidth(NOTE_TABLE_LID_POSITION, width);
width = global.getColumnWidth("noteTableLongitudePosition");
if (width>0) setColumnWidth(NOTE_TABLE_LONGITUDE_POSITION, width);
width = global.getColumnWidth("noteTableNotebookLidPosition");
if (width>0) setColumnWidth(NOTE_TABLE_NOTEBOOK_LID_POSITION, width);
width = global.getColumnWidth("noteTableNotebookPosition");
if (width>0) setColumnWidth(NOTE_TABLE_NOTEBOOK_POSITION, width);
width = global.getColumnWidth("noteTableSizePosition");
if (width>0) setColumnWidth(NOTE_TABLE_SIZE_POSITION, width);
width = global.getColumnWidth("noteTableSourceApplicationPosition");
if (width>0) setColumnWidth(NOTE_TABLE_SOURCE_APPLICATION_POSITION, width);
width = global.getColumnWidth("noteTableSourcePosition");
if (width>0) setColumnWidth(NOTE_TABLE_SOURCE_POSITION, width);
width = global.getColumnWidth("noteTableSourceUrlPosition");
if (width>0) setColumnWidth(NOTE_TABLE_SOURCE_URL_POSITION, width);
width = global.getColumnWidth("noteTableTagsPosition");
if (width>0) setColumnWidth(NOTE_TABLE_TAGS_POSITION, width);
width = global.getColumnWidth("noteTableTitlePosition");
if (width>0) setColumnWidth(NOTE_TABLE_TITLE_POSITION, width);
width = global.getColumnWidth("noteTableThumbnailPosition");
if (width>0) setColumnWidth(NOTE_TABLE_THUMBNAIL_POSITION, width);
width = global.getColumnWidth("noteTableReminderTimePosition");
if (width>0) setColumnWidth(NOTE_TABLE_REMINDER_TIME_POSITION, width);
width = global.getColumnWidth("noteTableReminderTimeDonePosition");
if (width>0) setColumnWidth(NOTE_TABLE_REMINDER_TIME_DONE_POSITION, width);
width = global.getColumnWidth("noteTableReminderOrderPosition");
if (width>0) setColumnWidth(NOTE_TABLE_REMINDER_ORDER_POSITION, width);
}