// 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); }