GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Show more information on the fields of a table in the DB Structure view · feng2010java/sqlitebrowser@7b6bee1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • DbStructureModel.cpp
    • icons
      • icons.qrc
      • page_key.png
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/DbStructureModel.cpp‎

Copy file name to clipboardExpand all lines: src/DbStructureModel.cpp
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,11 @@ void DbStructureModel::reloadData(DBBrowserDB* db)
175175
fldItem->setText(0, (*it).table.fields().at(i)->name());
176176
fldItem->setText(1, "field");
177177
fldItem->setText(2, (*it).table.fields().at(i)->type());
178-
fldItem->setIcon(0, QIcon(":/icons/field"));
178+
fldItem->setText(3, (*it).table.fields().at(i)->toString(" ", " "));
179+
if((*it).table.fields().at(i)->primaryKey())
180+
fldItem->setIcon(0, QIcon(":/icons/field_key"));
181+
else
182+
fldItem->setIcon(0, QIcon(":/icons/field"));
179183
}
180184
}
181185
}
Collapse file

‎src/icons/icons.qrc‎

Copy file name to clipboardExpand all lines: src/icons/icons.qrc
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@
3939
<file alias="browser_open">internet-web-browser.png</file>
4040
<file alias="project_save">package.png</file>
4141
<file alias="project_open">package_go.png</file>
42+
<file alias="field_key">page_key.png</file>
4243
</qresource>
4344
</RCC>
Collapse file

‎src/icons/page_key.png‎

Copy file name to clipboard
801 Bytes
  • Display the source diff
  • Display the rich diff
Loading

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.